You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How we built a scalable, arbitrary code app server (from MVP to millions of events)
Why should we do it?
How it will it be useful or interesting for readers/viewers
I think it is very interesting, a solid amount of work has already been done by Marius, Yakko, Michael, and could be very popular with our target demographic. Lots there to do a technical deep dive.
Bullet point outline of structure / questions / topics to be covered
We wanted the ability for anyone to run code that modifies their event
Because PostHog is product analytics, there are infinite use cases of companies who could use us, each with special data requirements, we might not solve them all.
To make sure we are capturing as much data as possible for users, we can integrate with other services.
The beginning
Hackathon, adding a world map
Failed beginnings
Python
MVP built in 3 days
App structure summary
Each app has two files: index.js (or index.ts) and plugin.json
index contains logic
plugin contains configuration for user input
Also includes Attachment, Storage, and LogEntry
Aka extensions
Within index, have functions like processEvent and onEvent which take a single event and the meta object (configuration values basically)
Exports a function for use in a VM
Integrating with PostHog, focusing on areas most relevant to apps.
Strapline
Explain the idea in a sentence or two
How we built a scalable, arbitrary code app server (from MVP to millions of events)
Why should we do it?
How it will it be useful or interesting for readers/viewers
I think it is very interesting, a solid amount of work has already been done by Marius, Yakko, Michael, and could be very popular with our target demographic. Lots there to do a technical deep dive.
#1955
https://www.youtube.com/watch?v=3_yH24Bh0HE
Was talked about but never finished: https://github.com/PostHog/product-internal/issues/152#issuecomment-906544963
Outline
Bullet point outline of structure / questions / topics to be covered
index.js
(orindex.ts
) andplugin.json
processEvent
andonEvent
which take a single event and the meta object (configuration values basically)processEvent
plugin-server#273events_plugin_ingestion
Kafka topicThe text was updated successfully, but these errors were encountered: