Backend Development 16 min read

Design and Implementation of Bilibili Live Interactive Platform

Bilibili’s live interactive platform, built on four core modules—developer management, app store, application interaction, and settlement—offers SDKs, debugging tools, asset libraries, and secure identity codes to streamline third‑party integration, enhance streamer and user experiences, ensure fair revenue sharing, and maintain robust monitoring and governance.

Bilibili Tech
Bilibili Tech
Bilibili Tech
Design and Implementation of Bilibili Live Interactive Platform

With the rapid growth of live streaming services and user base, enriching live room content, enhancing user interaction, and increasing revenue have become critical. Bilibili introduced interactive gameplay (e.g., bullet screens, gifts, likes, voyages) and opened its platform to third‑party developers, providing strong technical support for stable and efficient interaction.

Platform Construction

Before development, clear business boundaries were defined to avoid accumulated technical debt. The platform is divided into four core modules:

Developer Management Platform : onboarding, application review, gift and panel review, and data display for developers.

App Store Platform : interaction with streamers, app showcase, and customized recommendation algorithms.

Application Interaction Platform : interaction with live‑room users via an event system (gift/panel control, data flow monitoring, real‑time status tracking).

Settlement Platform : revenue statistics, storage, and reconciliation to ensure transparency.

The architecture is layered as shown in the original diagram (platform architecture).

Project Lifecycle

The lifecycle focuses on four improvement goals: developer onboarding efficiency and rights protection, streamer experience, user experience, and platform governance.

3.1 Onboarding and Development

Key questions for developers include rapid model building, low‑cost data debugging, and gift UI design without professional designers.

3.1.1 SDK & Demo

To lower development cost, Bilibili provides SDKs and demos in multiple languages:

Unity & C# client SDK

Python & Golang demos

3.1.2 Debugging Capability

Developers can test applications in a real environment by setting the live room to a whitelist. For high‑cost interactions (gifts, voyages, highlighted messages), a debugging tool allows backend‑triggered long‑connection messages, ensuring data correctness without real user actions.

3.1.3 Official Asset Library

An official gift asset library reduces design and review costs; developers select assets from the library, and regular user research keeps the library up‑to‑date.

3.2 Submission and Review

3.2.1 Package Management Tool

To prevent the platform from being used as a generic file storage, a package management system enforces storage thresholds, periodic scans, and deletion of invalid packages.

3.2.2 Operation Review Tool

Compliance checks ensure interactive content is legal and follows platform specifications. The tool monitors API request frequency and listens to traffic targeting live-open.biliapi.com . Since HTTPS traffic is encrypted, packet capture was rejected, leading to a sandbox proxy solution for detailed request logging.

3.3 Usage and Settlement

3.3.1 Identity Code System

To securely bind interactive gameplay to a live room without exposing room IDs, a unique identity code is generated per streamer. The code is invisible to other streamers and developers, with periodic and manual refresh capabilities.

3.3.2 Interactive Settlement

Revenue sharing is based on interactive gifts rather than total room revenue, ensuring fair compensation. Real‑time and daily reconciliation processes are established to verify transaction accuracy.

3.4 Monitoring and Feedback

Continuous monitoring includes a security center for rate‑limiting abusive calls, a monitoring dashboard for error statistics, and a feedback channel for streamers to report bugs, which are routed to developers.

Future Outlook

The platform is still evolving. Challenges include improving real‑time data analysis, completing the commercialization system, and proactively ensuring system stability as the user base expands.

monitoringsdklive streamingBackend Developmentsettlementinteractive platform
Bilibili Tech
Written by

Bilibili Tech

Provides introductions and tutorials on Bilibili-related technologies.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.