https://github.com/keyur-gondaliya/scalable-chat
High Scalable Chat App for Distributed Architecture with Redis and Kafka.
https://github.com/keyur-gondaliya/scalable-chat
kafka redis
Last synced: 5 months ago
JSON representation
High Scalable Chat App for Distributed Architecture with Redis and Kafka.
- Host: GitHub
- URL: https://github.com/keyur-gondaliya/scalable-chat
- Owner: Keyur-Gondaliya
- Created: 2024-03-21T19:27:32.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-03T19:15:36.000Z (about 1 year ago)
- Last Synced: 2025-01-10T19:46:30.649Z (6 months ago)
- Topics: kafka, redis
- Language: TypeScript
- Homepage: https://www.canva.com/design/DAGBHIekt_k/pfgml5vUjhkiGxHBmEYM4g/watch?utm_content=DAGBHIekt_k&utm_campaign=designshare&utm_medium=link&utm_source=editor
- Size: 268 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Scalable Chat App
This architecture for distributed system chat app while possible using redis and million message per second thruput via kafka for maximizing capacity of PostgreSQL with prisma.
## Installation
Clone the repository:
git clone https://github.com/Keyur-Gondaliya/PromptHub.git
### Start Prisma and PostgreSQL
Ensure your PostgreSQL database is running and configure Prisma accordingly. Then, start Prisma using:
npx prisma migrate dev### Start Redis Server
Make sure Redis is installed and running on your system. Then, start the Redis server.
### Start Kafka
Start Kafka server using:
kafka-server-start.sh### Set up environment variables:
Create a .env file in server and client and fill variables as per .env.example.
### Build
To build all apps and packages, run the following command:
```
cd Scalable-Chat
npm run build
```### Develop
To develop all apps and packages, run the following command:
```
cd Scalable-Chat
npm run dev
```## Contributing
Contributions to PromptHub are welcome!
## License
This project is licensed under the MIT License. See the LICENSE file for details.