mixpanel / mixpanel-android

Official Android Tracking Library for Mixpanel Analytics
http://mixpanel.com/
Apache License 2.0
1.02k stars 365 forks source link

feat: Enable data separation for each MixPanel API instance #830

Closed surajbokey-cred closed 7 months ago

surajbokey-cred commented 7 months ago

Introducing Database Separation for Streamlined Event Routing

This pull request addresses the challenge of event data being directed to both Mixpanel and the proxy server due to a single database setup.

Problem:

Currently, all events are stored in a centralized database, regardless of their intended destination (Mixpanel or proxy server). This makes it impossible to control which events flow to each server.

Solution:

This pull request implements separate databases for each server, named according to their unique instanceName. This ensures events are routed to the appropriate server based on their origin.

Implementation:

Benefits: