This is application-level sharding. When an OLTP database like Postgres or MySQL grows so large that it no longer “fits” on one server, the common approach to scaling is sharding. One way to do it is app-level sharding, where all the logic for which data goes to which server is embedded in your application code.