Social Media & Doctor Booking Modules
Social Media Module is a high-scale social media and docter consultation platform built as part of the larger MindConnect project.
This module focuses on Post, Feed, and Follow microservices, designed for millions of users with low-latency and high-throughput requirements.
Each microservice is independent and maintained in its own repository:
| Service | Description | GitHub Link |
|---|---|---|
| Post Service | Handles creation, updates, and storage of user posts | Link |
| Feed Service | Generates user timelines efficiently using Kafka fan-out | Link |
| Follow Service | Manages follower/following relationships and notifications | Link |
Each repo includes setup instructions and can be run independently.
- Communication: gRPC + REST for inter-service calls
- High-scale fan-out: Processed 5M followers in 7–9 minutes using Kafka (5 partitions, 6 consumers)
- Batching & Parallelism: Batches of 2,000 followers for efficient fan-out
- Database Rate-Limiting: MongoDB writes capped at 10K ops/sec using Guava Leaky Bucket
- Resilience & Throughput: Multi-threaded producers and parallel consumers handle peak traffic smoothly
The system consists of multiple modules: UserService, DoctorService, SocialMediaService, BookingService, API Gateway, and supporting databases/storage.

This diagram details the Post, Feed, and Follow microservices including Kafka fan-out, MongoDB schema, and timeline batching.

- Link – Contains design decisions, approaches, and notes on building scalable microservices
- Demonstrates system design thinking, planning, and experimentation before implementation