Skip to content

Commit 7f2ea98

Browse files
authored
Create monolith-vs-microservices.md
1 parent 07d2508 commit 7f2ea98

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: Monolith vs Microservices
3+
sidebar: Handbook
4+
showTitle: true
5+
---
6+
7+
## Monolith vs Microservices
8+
9+
Ah, the age old argument. We have a simple rule of thumb:
10+
11+
> Our customers should talk to our Django monolith. Our customers' customers should talk to independently scalable services with their own data stores.
12+
13+
That means, everything that happens when you log into PostHog, all CRUD operations, should happen in our Django monolith. We have in the order of magnitude of 10s of thousends of DAUs. That's a level of scale that Django can very easily handle with a few web pods and a single postgres database.
14+
15+
Our customers have hundreds of millions of users, and we have a lot of independent products that could and should scale independently of each other (and more importantly, not take each other down). Some examples of this are [capture-rs](https://github.com/PostHog/posthog/tree/master/rust/capture) or [feature flags calling](https://github.com/PostHog/posthog/tree/master/rust/feature-flags).
16+

0 commit comments

Comments
 (0)