Sign in
Log inSign up

Creating a Chat App working in memory with NodeJs, and HarperDB.

Tobi Samuel Ojo's photo
Tobi Samuel Ojo
·Jul 1, 2021·

2 min read

Greetings people. In this tutorial you will learn how o create a simple chat application working in memory via NodeJs and HarperDB. Before will begin, what is HarperDB?

HARPERDB ⚡

HarperDB is a geo-distributed database with hybrid SQL & NoSQL functionality in one powerful tool, accessed via a REST API. Runs anywhere presenting a single interface across all deployment architectures. Hybrid cloud capability, run on public cloud, edge data centers, on-premise, and/or in the field. Provides low latency edge data replication, effectively the evolution of CDN, but for your data. Real-time data synchronization between nodes A single node of HarperDB can handle 100,000 requests per second & it can globally replicate data at the speed of the Internet. It also support cross cloud capability such as AWS, AZURE More information about it can be found Here Screenshot (420).png

What inspired me to create this? 🤩

When I first read about the hackathon in Hashnode, the first thought that came to my head was - Why not try and build chat application with HarperDB’s support?. Although, I got the information late. Likewise, the application was built in less than 24 hours.

Details about the Chat Application ⚡ The chat message works in memory, but when the user join a chat it is been stored in database.

Screenshot (423).png

Users can join room, leave room and a greeting bot has been added to the room just like a mini slack, or discord channel

Screenshot (421).png

Screenshot (424).png

Source

The source code can be found Here

Tech Stack

More features will be added to the soonest and also improve on the connection. You can support me buy getting me a coffee Here.....

#harperdbhackthon