DEV Community

VISHAK
VISHAK

Posted on

1 1

One-Tier Architecture

Single tier Architecture

All services that are needed to build an application will be configured inside a single server that also handles requests and responses.

Basically, an application needs a webserver(httpd, nginx etc) ,app server(JBoss, Tomcat, Glassfish) and finally database server(mysql, oracle, mongoDB etc) to work effectively, so in a single server architecture all the above mentioned components will be configured in a single server. The server's private IP will be used for all communications between the web, app, and database.

Image description

In a single-tier architecture,all the services will be on the same machine using the same resources, which can create an availability risk. If the server is down, then the entire application will be down. Single tier is suitable for simple applciations or sites with low traffic.

Below is a basic diagram of a single tier architecture.

Image description

You can see from the above diagram that user requests are routed through the firewall to a single server, and that all communications take place solely between the user and the server.

Advantages
1) Cost effective
2) Simple and uncomplicated design
3) Faster communication between App, Web and Database services

Disadvantages
1) Less Availability
2) Higher down time

Cheers🥂🚀
Keep Learning!

Billboard image

Deploy and scale your apps on AWS and GCP with a world class developer experience

Coherence makes it easy to set up and maintain cloud infrastructure. Harness the extensibility, compliance and cost efficiency of the cloud.

Learn more

Top comments (1)

Collapse
 
joelbonetr profile image
JoelBonetR 🥇 • Edited

That's it!
I usually use this architecture for side projects to begin with or even for client webApps (be they PWAs or not).

I've recently found Next JS pretty convenient for that, as it provides a place to put your /api/ endpoints which you can then extract easily into a different Node JS servers if needed.

Following you to read more about different architectures! 😁

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay