Search⌘ K
AI Features

Structuring a Web Application

Explore how to design and build a scalable web application structure using Deno. Understand key architectural principles, business logic development, and creating HTTP endpoints, preparing you to organize applications for growth and maintainability.

Structure and scalability

When starting an application, it’s important that we spend some time thinking about its structure and architecture. That's where there this section will start: by looking at the backbone of application architecture. We’ll have a look at what advantages it brings and align ourselves with a set of principles that will help us scale it as the application grows.

Then, we’ll develop what will become the application’s first endpoint. However, first, we’ll start with the business logic. The persistency layer will follow, and we’ll finish by looking at an HTTP endpoint that will act as the application’s entry point.

Application architecture of Deno

When we’re using tools that are low level and delegate many decisions to developers, such as Node.js and Deno, structuring an application is one of the big challenges that arises.

This is very different compared to an opinionated web framework, such as PHP Symfony, Java SpringBoot, or Ruby on Rails, where many of these ...