Skip to content

19shubham11/turbo-octo-fiesta

Repository files navigation

This is a simple node client-server simulating the client(s) sensors sending near real-time data to a server.

Requests

Instead of each request directly going to the server, I am queuing 5 requests at a time and sending the batch to the server. This approach is similar to individual sensor nodes sending data to an intermediate sensor which in turn forwards the messages to the server, this usually saves battery life of the sensors which are usually low powered.

Compression

Requests made by the intermidate node (batch of 5) are compressed uzing gzip and the same is unzippd at the server.

Setup and tests

  • Install dependencies inside sender and receiver directory.
  • Install dependencies on the root level (used for tests)

This project is configured with jest and unit tests can be executed using npm test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published