Blockchain, Game

Facaby

A Telegram mini app

Facaby 1st image
Client

Confidential

Duration

2 months

Category

Blockchain

Year

2024

Technology

NestJS, MongoDB

Introduction

Facaby is a tap game on Telegram that aims to blend engaging tap mechanics with collaborative social missions, fostering community engagement and shared achievements among players.

Facaby 2nd image

Challenges

Facaby aims to deliver a highly responsive and engaging experience for users participating in both individual tapping and collective social missions on Telegram. However, several challenges stood in the way of achieving this goal:

– Handling high volume of user interactions: The nature of a tapgame generates an extremely high frequency of user inputs. The backend and database needed to process millions of tap events per minute efficiently without latency, ensuring a smooth and uninterrupted player experience.

– Real-time synchronization for social missions: Providing instantaneous updates on the progress of shared social missions to all participating players was critical for engagement, requiring robust real-time communication capabilities between the frontend and backend.

– Database performance and scalability: To effectively manage rapidly changing player scores, individual progress, and collective mission statuses, the database design needed to handle high write loads and scale with user growth.

Facaby 3rd image

Solutions

To overcome the challenges, Hola Tech adhered to the best practices. Key components of the solution included:

– Event-driven architecture: Develop a high-performance and scalable backend using NestJS, leveraging efficient request handling and asynchronous processing to manage a massive volume of tap events.

– Robust real-time communication mechanisms: Hola Tech implement a real-time communication mechanism to ensure instant synchronization of social mission progress and combat results across all connected clients.

– Scalable database: Hola Tech implemented MongoDB sharding to distribute data horizontally across multiple servers, crucial for managing massive datasets and high write loads. Data models were optimized with embedded documents to minimize joins and improve query performance.

Facaby 4th image

Featured numbers

– Supported 10,000+ daily active users with consistent performance

–  Processed over 1 million tap events per hour with minimal latency

Results

The implemented system successfully met Facaby’s requirements for performance, scalability, and real-time synchronization. This Telegram mini app has significantly enhanced user engagement by providing immediate feedback on tapping actions and transparent, real-time progress for collaborative social missions. Facaby has attracted over 10,000 active users, who collectively perform millions of tap events daily and actively contribute to hundreds of completed social missions. This demonstrates Facaby’s success in delivering a highly interactive and community-driven gaming experience that seamlessly blends individual input with shared goals.

Other Projects