Flutter & .NET Blog

Expert insights on Flutter, Dart, and .NET 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
Dart Switch Expressions

Dart Switch Expressions

Dart 3 adds a new feature called Switch Expressions. Dart is a multi-paradigm language that supports both object-oriented, imperative, functional-style and declarative programming. Programmers have...
Christian Findlay Christian Findlay May 11, 2023