live_chat
By busywhistling
serverless_chat
Serverless live chat application using React (by busywhistling)
live_chat | serverless_chat | |
---|---|---|
1 | 1 | |
0 | 1 | |
- | - | |
10.0 | 10.0 | |
over 1 year ago | over 1 year ago | |
HTML | TypeScript | |
- | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
live_chat
Posts with mentions or reviews of live_chat.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-10-04.
-
Implementing serverless chat in React
When I first started this project, I wanted to build a live chat application, one of the fundamental pieces of software in any social product. I made an app using the popular Javascript express (server) and socket.io (websocket) libraries which worked fine in local development. When it came to deploying it online, I didn't want to just deploy it openly (without authentication) as there might be bots crawling the internet, looking for open websocket servers to spam and so on. On the other hand, I didn't want to use my domain for authentication (and registration) services for this pet project. The idea of using serverless JS workers came to me as I was thinking about how to architect the application with the least possible backend exposure. Luckily, several cloud vendors provide such services nowadays so it's only a matter of time to integrate with their interfaces.
serverless_chat
Posts with mentions or reviews of serverless_chat.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-10-04.
-
Implementing serverless chat in React
Our worker implements a fetch listener (wrapped in an error handler) and passes on API requests further, to instantiate a ChatRoom class. The instance of this class runs as a Durable Object and creates chatrooms while handling sessions to this chatroom. Since we don't want to persist data, we don't store it anywhere and all data is lost as soon as the websockets enabling the sessions are disconnected / closed. The ChatRoom Durable Object also instantiates a RateLimiter class to ensure worker compute is not abused by heavy traffic, but is rather moderated via rate limiting.
What are some alternatives?
When comparing live_chat and serverless_chat you can also consider the following projects:
cf-socket-server - This nifty little project is a swiss army knife for realtime backend projects. It is scoped to rooms, and encompasses multiple useful features.
Express - Fast, unopinionated, minimalist web framework for node.
eslint-plugin-react - React-specific linting rules for ESLint
relay-starter-kit - 💥 Monorepo template (seed project) pre-configured with GraphQL API, PostgreSQL, React, and Joy UI. [Moved to: https://github.com/kriasoft/graphql-starter-kit]