Back

[Solved] how many real time connections are too much

  • 0
  • Realtime
๐ŸœUdon๐Ÿœ
18 May, 2023, 23:02

I'm working on a Chat app and I'm currently using 2-4 real time connections each with its own instance. I can control the data using riverpod but there's certain things that I want to change when the database does. I'm just trying to find out if I'm gonna regret using too many real time connections per user

TL;DR
OP is asking about how many real-time connections are too much for their Chat app. They mention using riverpod to control the data but want to know if using too many connections per user is a problem. Someone suggests optimizing and learning by building and breaking. OP also expresses interest in learning more about appwrite requests and real-time. The thread ends with a resource link for handling open connections and a mention of hot reload. No specific solution is provided for the issue with state notifier not updating until a refresh.
Drake
18 May, 2023, 23:21

self-hosted or cloud?

๐ŸœUdon๐Ÿœ
19 May, 2023, 01:36

Self-hosted

๐ŸœUdon๐Ÿœ
19 May, 2023, 01:37

I got a decent server setup

Drake
19 May, 2023, 01:37

It depends on what your server can handle then

๐ŸœUdon๐Ÿœ
19 May, 2023, 01:37

Okay

๐ŸœUdon๐Ÿœ
19 May, 2023, 01:37

Good answer

๐ŸœUdon๐Ÿœ
19 May, 2023, 01:37

Are you familiar with riverpod?

๐ŸœUdon๐Ÿœ
19 May, 2023, 01:38

Is the only way I can get updated info from a stream provider

๐ŸœUdon๐Ÿœ
19 May, 2023, 01:39

I think I'm doing something wrong because when I use a state notifier when I post a chat it doesn't show till I refresh

๐ŸœUdon๐Ÿœ
19 May, 2023, 01:39

Or hot reload

Drake
19 May, 2023, 01:39

There are some os level tweaks you may need to handle the open connections: https://itnext.io/websocket-1-million-connections-using-appwrite-2d2a2c363a37

๐ŸœUdon๐Ÿœ
19 May, 2023, 01:39

Ohhh what's that

Drake
19 May, 2023, 01:40

Probably considering the data comes from a stream

๐ŸœUdon๐Ÿœ
19 May, 2023, 01:40

Wow

๐ŸœUdon๐Ÿœ
19 May, 2023, 01:40

What an awesome article

๐ŸœUdon๐Ÿœ
19 May, 2023, 01:42

I need to learn how to make better riverpod providers

๐ŸœUdon๐Ÿœ
19 May, 2023, 01:42

Wow for 1k a month I can have 1 million real time connections

๐ŸœUdon๐Ÿœ
19 May, 2023, 01:42

Appwrite is awesome

๐ŸœUdon๐Ÿœ
19 May, 2023, 01:43

I bet I'd have to pay like 10k if I was using firebase

๐ŸœUdon๐Ÿœ
19 May, 2023, 01:44

If you know any good resources for how I can be better with appwrite requests and real time let me know. I love learning

safwan
19 May, 2023, 08:17

just keep building stuff and try to think of ways to optimize. best way to learn imo, is to build, break and rebuild

๐ŸœUdon๐Ÿœ
19 May, 2023, 14:41

Sounds good ๐Ÿ‘ @safwan

๐ŸœUdon๐Ÿœ
19 May, 2023, 14:41

[Solved] how many real time connections are too much

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more