An open API service indexing awesome lists of open source software.

https://github.com/somnath-chattaraj/pubsub_and_singlenton


https://github.com/somnath-chattaraj/pubsub_and_singlenton

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# To start follow the guidelines

```

npm i
tsc -b
node dist/index.js

```
# Description

This is basically a stateful backend server. It create a `in memory cached` and can also be use to store the `state` of the game in a real-time game. It also apply `stickness` i.e.
make sure the user who is interested in a specific room get connect to a specific server. Here it is basically a system where the user can subscribe to the information they want. `For example: feed of the stock (prices)`

Screenshot 2024-05-03 at 8 53 23 PM

In this the `PubSubManager.ts` file create a manager that look upon the user interest where `index.ts` file stimulates as users.