Year: 2014
Type: dissertation
Abstract: The explosion in popularity of pocket-sized consumer electronics such as smartphones and health and fitness devices, has led to the self-empowerment of users, who now actively wish to track their health condition and physical performance. As the amount of users of these kinds of devices increases and the communication capabilities of the devices themselves evolves, the medical and signal data generated by these applications is increasing exponentially. In this dissertation, we present a high throughput, highly available service that aims to process and store this huge amount of data. We use the scenario of a health institution receiving data from several patients in real time. One of the most stringent data streams in terms of space and throughput required would be from an Electroencephalogram (EEG) with a sampling rate of 500 Hz and 21 leads generating 10500 data points per second for a single client. Based on these requirements, we propose an architecture with a NoSQL datastore to store timeseries data, a relational database to store related metadata, and a Node.jsbackend to build a system capable of performantly handling a great number of concurrent connections. Our system achieved over 100.000 rows inserted per second with 128 simultaneous clients inserting while using a Cassandra cluster composed of two nodes. We also present and discuss several Cassandra tests with the different Node.js drivers available, both in virtualized and physical environments.i Resumo A explosão em popularidade da electrónica de consumo, como por exemplo com os smartphones e dispositivos médicos e de fitness, levou ao auto-empoderamento dos utilizadores, que desejam agora monitorizar a sua condição física e de saúde. Conforme a quantidade de utilizadores e as capacidades de comunicação de rede destes dispositivos aumentam, a quantidade de dados de sinais médicos gerados por estes dispositivos e aplicações está a aumentar exponencialmente. Nesta dissertação, apresentamos um serviço de alto débito e alta disponibilidade com o objectivo de processar e armazenar esta enorme quantidade de dados. Um dos fluxos de dados mais exigentes em termos do espaço e débito exigidos seria o de um EEG com uma taxa de amostragem de 500 Hz e 21 eléctrodos, que gera 10500 pontos de dados por segundo para um único cliente.Com base nestes requisitos, propomos uma arquitectura com uma base de dados NoSQL para armazenar os dados de séries temporais, uma base de dados relacional para guardar os metadados relacionados, e um backend em Node.js para construir um sistema capaz de lidar com um grande número de ligações concorrentes.O nosso sistema consegue atingir mais de 100.000 linhas inseridas por segundo com 128 clientes a inserir em simultâneo, usando um cluster Cassandra composto por dois nós. Também apresentamos e discutimos vários testes realizados com a base de dados Cassandra com os vários drivers de Node.js existentes, tanto em ambientes virtualizados como físicos. This dissertation would not be possible, at least in its current state and form, without the assistance, guidance and kind words and actions of several people.I want to express my thanks to my thesis advisors, Pedro Brandão and Rui Prior, for their invaluable help, advice and patience. Without them I would have certainly lost my way in face of slow progress and Cassandra and Node's evil machinations and stubborness not to work all that well together. Our weekly meetings kept me on track with objectives and goals in mind, and that's the way I work best. Their last minute corrections and advice also improved my writing quality and overall correctness immensely. To my friends
DOI: 10.34626/jzjx-x898
Author: Oliveira, Pedro Miguel Martins
Institution: Universidade do Porto
Language: English
Subfield: Information Systems
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W657884604
