Skip to content

Latest commit

 

History

History
37 lines (21 loc) · 1.49 KB

README.md

File metadata and controls

37 lines (21 loc) · 1.49 KB

Socket communication nodejs

This project wants to be an help for me to learn and improve some concepts related to distributed systems and socket communication.

System Explained

The system is composed of 3 services:

  • dashboard: the front end application for inserting and showing data.
  • write-side: the service the handles the incoming requests (insert commands) from the front end.
  • read-side: the service the handles the outcoming queries (get commands) to the front end.

From the dashboard is possible to add a new data (feed). The write-side service inserts the data in the database (mongoDB) and dispatch the data to the read-side. The read-side service dispatch the data to clients.

Architecture

The following picture shows the flow of the data through main components

architecture

Currently the database for read-side doesn't exist. The read-side waits for a new data and dispatch directly to clients.

Sequence Diagram

The following picture shows the sequence diagram for add command.

v1sequencediagram

References

Miscellaneous