Skip to content

socket.io with reactjs and nodejs, using two services for writing and reading

Notifications You must be signed in to change notification settings

antpass79/socket-communication-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

socket.io with reactjs and nodejs, using two services for writing and reading

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published