
Jestr (2014): The Architecture of a Social App and the Power of PostgreSQL Views
When building a modern social media application, engineers are immediately confronted with two massive hurdles: data security and performance . Social networks are inherently complex webs of relational data—users create posts, posts have comments, comments belong to users, and posts receive reactions. Fetching this data usually results in the dreaded "N+1 query problem" or highly convoluted Object-Relational Mapping (ORM) code that is slow, heavy, and prone to exposing sensitive data. Back in 2014 , during the development of the Jestr ecosystem, the engineering team tackled this problem head-on. The project was split cleanly into a native iOS frontend ( jestr-app ) and its backend engine ( jestr-api ). After consulting with an engineer at Facebook, the Jestr team implemented a brilliant, highly optimized architecture relying heavily on PostgreSQL Views and native JSON serialization . The fundamental philosophy? No accidental data leaves the DB, and results are highly optimized for mobi
Continue reading on Dev.to
Opens in a new tab



