Home / Companies / PostHog / Blog / September 2023

September 2023 Summaries

3 posts from PostHog

Filter
Month: Year:
Post Summaries Back to Blog
PostHog has revamped its data export system to address scalability and reliability issues that plagued its previous export apps, which were unable to efficiently handle larger customer data flows. This new system, currently in public beta, leverages Temporal, a workflow engine that manages failure modes, retry logic, and timeouts, significantly enhancing the reliability, transparency, and cost-effectiveness of data exports. The previous export apps faced challenges like failure detection, data duplication, and high operational costs due to their reliance on an inefficient app service structure that was better suited for stateless apps. By adopting Temporal, PostHog has been able to implement retry and timeout logic, improve workflow visibility, and reduce the burden of manual interventions on its pipeline team. The new system includes a batch export abstraction layer that defines configurations for data exports and destinations, and it allows users to interact with their exports through a dedicated page where they can manage and monitor export activities. With this upgraded system, PostHog aims to enhance its customer data platform and warehouse functionality, while planning future improvements such as expanding destination support, enhancing performance, and adding features like roles-based access control and schema definition capabilities.
Sep 26, 2023 1,674 words in the original blog post.
Feature flags are tools that allow developers to enable or disable code functionalities in a controlled manner, facilitating the separation of deployment from release. While building a basic feature flag service is straightforward, scaling it introduces complexities such as remote configuration and runtime modifications, which can lead to technical challenges and increased maintenance. As a result, many opt for feature flags as a service, which provides centralized management, remote configuration, and additional capabilities like targeting logic, A/B testing, and integration with other services, thus enhancing usability, reliability, and interoperability. This external service approach allows developers to focus on core product differentiation while outsourcing potential issues related to feature flag management. The decision to build or buy depends on the specific needs and use cases, with simpler requirements potentially favoring in-house solutions and more complex needs benefiting from commercial services.
Sep 12, 2023 869 words in the original blog post.
The text discusses the challenges and solutions related to making feature flags fast and reliable, specifically in the context of PostHog's feature flag service. Feature flags are essential for determining application behavior, and latency in their evaluation can significantly impact user experience. To address this, PostHog has implemented strategies such as local evaluation, where the SDKs download and evaluate flag definitions locally, reducing dependency on network I/O and cutting latency from 500ms to 10-20ms. They also introduced bootstrapped feature flags so that flags are instantly available on the client side. Reliability is enhanced by caching flag definitions and project mappings to maintain functionality even when databases are down, although caching person properties is impractical due to scale. To mitigate issues with database and connection pooler failures, PostHog has implemented statement timeouts and separated deployments for feature flags. These efforts have significantly reduced latency and improved reliability, ensuring that the core functionality remains solid despite ongoing challenges and potential system failures.
Sep 08, 2023 1,974 words in the original blog post.