Mobile App Development Blog

Expert insights on Software development development

N-tier Architecture Was a Mistake: Long Live Apps That Talk Directly to the Database

N-tier Architecture Was a Mistake: Long Live Apps That Talk Directly to the Database

Back in the day, many desktop apps talked directly to the database. We didn’t have APIs over the top of the database, and quite often, there was literally no security. The software industry eventually transitioned to the n-tier architecture, which places a physical API layer over the top of the database to provide security. A robust security model is critical for a modern system, but thinking about why things changed is interesting. This article explores how BaaS can salvage the simplicity of direct database communication while providing a robust security model. What Is N-Tier? N-tier or Multitier architecture aims at separating the various layers. In the case of a web API, the most important separation is the physical separation between the database and the API itself. This separates the API’s business logic from the persistence. In its simplest form, an...
Christian Findlay Christian Findlay Jun 12, 2023