Hyper Scalable Group Chats

Rajdeep SinghaRajdeep Singha
5 min read

Push Chat has been a game-changer for web3 messaging, offering a hassle-free experience for user to user, user to dApp, and group conversations. In essence, Push Chat makes messaging in web3 as seamless as it is in web2. One feature we’ve been working on extensively within Push Chat is Push Group Chat, the ability to host conversations with multiple members.

Whether you're chatting in public groups, enjoying more private discussions, or joining token-gated communities, Push Group Chat makes connecting with others simple and secure. But now, Push is levelling up its scalability and increasing group limits into the thousands. Let's dive into the enhanced possibilities and expanded horizons that await this enhanced Push Group Chat!

From 1.5k to 25k Members in a Single Group Chat! 🔥

Group Chat platforms have always struggled with the number of participants a single group could accommodate. This limitation has hindered the potential for large-scale user interactions and hence restricted how Group Chats can be used to connect with a broader audience. Introducing our newly enhanced Push Group Chat. We’re calling it "hyper scalable" in reference to Push Group Chat’s newfound ability to handle significantly larger group sizes, transcending its prior limitations. This enhancement signifies a major development for web3-native user interactions , empowering users to engage in more extensive and inclusive group conversations like never before.

With hyper scalability, Push Group Chat has transformed the landscape of group conversations. Public group limits have skyrocketed from 1500 to an impressive 25,000 members. Similarly, private groups once capped at 50 members, now support up to 5,000 participants. These substantial increases are redefining the potential for group interactions in web3 and reflect Push Group Chat's commitment to delivering a more dynamic and accommodating messaging experience.

Push Chat Challenging Web2 Incumbents

Instant communication has long been dominated by traditional Web2 chat applications like WhatsApp and Signal, but Push Chat is here to challenge that. While the incumbents rely on centralised architectures that leave user data susceptible to potential vulnerabilities, Push Chat pioneers a decentralised approach, ensuring end-to-end encryption and placing control back into the hands of users.

Moreover, the introduction of hyper scalability in Push Chat takes the competitive edge to new heights. In contrast to the confined group sizes enforced by WhatsApp and Signal, where limitations are approximately 1000 members, Push Chat shatters these constraints by accommodating a staggering 25k members for public groups and 5k for private groups.

Push Chat Benchmarks: Letting The Numbers Speak For Unprecedented Scale And Security

Public Group SizeTime Taken for Sending Message ( ms )
10192
50170
100110
250103
500104
1K107
2.5K117
5K167
10K156
15K198
25K343
Public Group SizeTime Taken for Joining Grp ( ms )
10101
50111
100128
250125
500199
1K190
2.5K328
5K449
10K609
15K803
25K1109
Private Group SizeTime Taken for Sending Message ( ms )
10300
50170
100169
250193
500231
1K295
2.5K539
5K868
Private Group SizeTime Taken for Joining Grp ( ms )
10287
50312
100312
250481
500711
1K1192
2.5K5153
5K12769

What’s Made Hyper Scalability Possible?

In the relentless pursuit of hyper scalability, Push Chat has had to undergo transformational advancements at both the architectural and encryption levels.

Previously, each message within private groups underwent encryption using the private keys of all group members, resulting in encryption complexity directly proportional to the number of participants.

Contrastingly, the platform has been upgraded to now dynamically generate session keys and encrypted secrets during every pivotal group state change, such as adding, removing, or joining members. Push Chat ensures that the time-consuming aspect of the encryption process is reserved for moments when the group dynamic undergoes significant transformations. This innovative approach ensures that the encryption process for private group messages remains constant, irrespective of the group's size. By dissociating encryption complexity from the number of participants, Push Chat has effectively eliminated the scalability concerns associated with larger private groups.

But Wait…More Enhancements Are On The Way​

We are not stopping at 5k members. We have already made the breakthrough to take this to 100,000 benchmarked members 😱 for both private and public group chats. The only caveat is that it breaks backward compatibility when messages using the newer architecture are read by older SDKs.

To address this, we have decided to implement these changes in two phases: Incorporate all functionalities that understand the new architecture in Push SDK from 1.4.45 upwards. Devs just need to update to start supporting the reading of those formats. The use of the feature flags in the SDK (See below or ask on Discord as to how to enable that: https://discord.gg/pushprotocol) enables the new standard as the default allowing devs to tap into it and use that in case they want.

So, what do you have to do to update this functionality?

Only one thing: Update the SDK to the latest version (1.4.45 or upwards), that’s it! This will ensure that messages sent using the new message standards are understood and displayed correctly in your dApp / mobile app / etc.

0
Subscribe to my newsletter

Read articles from Rajdeep Singha directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Rajdeep Singha
Rajdeep Singha