IT Product Model
1. Modern products
Modern products are no longer called programs. A modern product can include dozens of programs, hundreds of Internet services, and many APIs provided by a cloud data center (also called data processing centers), where it is deployed.
Many modern products (if not all of them) work under the client-server paradigm. This is when your device (phone, laptop, computer) has a program that handles communication with the user (you), while critical functionality is located on a dedicated server, where everything important happens ➡️🖥️
Sometimes your client can communicate with several independent servers, or a server of one product can call the server of another product. This results in a kind of global network of clients and servers, and they all work with each other.
Therefore, the modern application model might be better described by the client-Internet-server paradigm. There has become too much diverse, complex communication. So-called “smart communication channels” have even appeared, which decide on their own whom to send your request to and when.🛰️📡
2. Clients
Client programs can roughly be divided into 4 categories:
- 🖥️ Desktop client — a program running on a computer.
- 📲 Mobile client — an app for iOS or Android.
- 🌐 Web client — a website/web app running in a browser.
- 🌍 Server client — an app that runs on another server.
And each of them, in turn, can be broken down into parts again. For example, a web client is a website or a web app, which means it consists of a Browser and a Website that is loaded into it. Browsers are not all the same and can behave differently.
But even if we take the most common browser, there is still the website that is loaded into it. A website usually consists of three things:
- 📄 HTML
- 🎨 CSS
- ⚡ JavaScript
“Nothing could be simpler,” you might say. But today nobody writes websites using just HTML and JavaScript. For website development, people now use not just libraries, but full-fledged frameworks such as React, Angular, or Vue ⚛️. And they are no longer really websites, but full-fledged web applications with their own builds, tests, and paradigms.
Nobody uses plain CSS anymore, either. CSS preprocessors already exist to help generate it, and there are entire CSS frameworks. What’s more, even for email messages there are special CSS frameworks so your email looks nice both in the browser and in most email clients 💌.
Very few people write in plain JavaScript anymore—most large web applications are built in TypeScript, which is then compiled into JavaScript. Well, you get the idea...
3. The Internet and infrastructure
Communication between client and server—what could be simpler? But even in their relationship, everything has already changed.
Your product will most likely be hosted in one of the modern data centers. Many companies around the world offer various hosting services for your products, whether on their servers or on your own physical servers. Any whim for your money.
A physical server is no longer physical. All modern data centers offer rental of virtual servers. A virtual server is a kind of virtual computer, and a single physical server can host dozens of them. On the other hand, it’s convenient when it comes to upgrading a server. If you need more memory, you can add it to your virtual server in a few minutes ⏱️.
But even this approach is becoming outdated. Moving to the cloud is now in fashion—this is when your product is not just deployed on a virtual server in a data center, but actively uses a large set of infrastructure and services provided by those data centers.
You need a server to store backups—there is ready-to-use, convenient infrastructure for that in the cloud. You need a database with reliability of 99.9999999%? That exists too. Kafka, RabbitMQ, NoSQL? Everything already exists and is easy to set up. Just pay the money.
And these data centers and clouds start becoming part of your product. For example, Amazon has loads of data centers worldwide, so they offer a CDN service: your public content will be cached across all Amazon data centers, and your users around the world will receive it faster 🛰️.
Or calls to your application’s API can be routed through Amazon Gateway API, which allows very flexible configuration of how you work with your services. You can distribute load across different services, mitigate DDoS attacks, automate file uploads, set up smart caching, and much more 🛡️.
Thus, between the client application and your services, many “smart communications” arise that can and should be configured. Even if you never do this personally, you should know they exist and can significantly affect how your program works.
And we haven’t even touched on topics like routers, 5G towers, satellites, and Internet cables on the ocean floor. You send a video stream from your server to your client, and it glitches because the client has poor connectivity and the connection keeps dropping. Guess who will be solving that problem? You 😅
4. Server
The word “server” can refer to completely different things. It will be useful for you to learn about the most common ones.
🖥️ Physical server
A physical server is hardware—a standalone computer with resources (CPU, memory, storage) used for data processing and for running various software applications. These servers are installed in data centers, where they provide capacity for hosting websites, applications, databases, and other services.
🪐 Virtual server
A virtual server is a software-emulated server that runs within a physical server environment. With virtualization technologies, one physical server can be partitioned into multiple isolated virtual servers, each of which has its own operating system and can be independently rebooted and configured.
🕹️ Server program (for example, Nginx)
A server program, such as Nginx, is server-side software used to handle requests to web resources. Nginx is widely known as a web server, and it can also act as a mail proxy server and a reverse proxy server in microservice architectures, as well as a load balancer.
💾 Database server
A database server is a specialized server used to manage databases and process queries to them. It provides centralized data storage and processing, offering access to data over the network. Database servers support transaction processing, searching, and data modification while ensuring reliability and security of information storage. Examples of database servers include MySQL, PostgreSQL, Oracle Database, and Microsoft SQL Server.
And somewhere in a data center, on one of the virtual servers, your project in Kotlin 2.3 and Ktor will be running. It will work with a database, accept requests through Nginx, Apache HTTP Server, or a load balancer in AWS Elastic Load Balancing or Google Cloud Load Balancer, and send its action logs to monitoring systems like Prometheus + Grafana, Elastic Stack (ELK), or Splunk 📈.
But it is thanks to your code that millions of users of your product will be satisfied. They will use the service, pay money for it, and in the end the product owner will be happy too. The company’s stock will rise, you will get bonuses in stock—and you will be happy 💸. A real cycle of happiness in the industry :)
GO TO FULL VERSION