How to Choose a Technology Stack for Web Application Development

One of the most important steps in building a successful digital software product is choosing the right technology stack. Why? Because building a product isn't just about designing a beautiful and convenient user interface; it's also about designing a solid, secure and easy-to-maintain product that will not only win your customers' hearts but also let you scale your business. That's where the right technology can help.

As a business owner, you're busy with things like developing your business idea, defining your product's pricing model and running strong marketing, so deciding on the technologies for your new app is something you'll leave to the developers.    

Of course, relying on your development partner's technology recommendations is common practice. But you should make sure your partner understands your business requirements and takes into account all the important features you'll implement when choosing the appropriate technologies.

At Rich Design, we believe that a general understanding of the web application technology stack is a must for the client. It helps us speak the same technical language and reach your goals effectively. That's why we prepared this article.

Without further ado, let's explore what a technology stack is and which tools we use at Rich Design to build your web products.

Defining the structure of your web project

You may have guessed that a technology stack is a combination of software tools and programming languages used to bring your web or mobile app to life. Roughly speaking, web and mobile apps consist of a front end and a back end: respectively, the client-facing part of the application and the hidden part on the server.

A typical application tech stack

[A typical application technology stack]

Each layer of the application is built on top of the ones below it, forming a stack. This makes the technologies highly dependent on one another. The image above shows the main building blocks of a typical technology stack; however, there may be other supporting elements. Let's take a closer look at the standard elements of front-end and back-end development.

Front end

The front end, also known as the client side, is the part of an application that users see and interact with. For a web application, this interaction happens in a web browser and is made possible by a range of programming tools. Client-facing web applications are usually built with a combination of JavaScript, HTML and CSS. We'll describe the components of the front-end stack below.

The tools we use for website development

HTML (HyperText Markup Language) is a markup language used to define the structure of the information presented on a web page. Rich Design uses HTML5, the latest version of HTML, which has new elements and attributes for building web applications more easily and effectively. The main advantage of HTML5 is its support for audio and video, which earlier versions of HTML lacked.

CSS (Cascading Style Sheets) is a style sheet language that defines the appearance and formatting of a document written in HTML. CSS is used to annotate text and embedded tags in styled electronic documents.

At Rich Design, we use CSS3 (the latest working version of CSS) together with HTML5. Unlike earlier versions of CSS, CSS3 supports responsive design, allowing website elements to respond differently when displayed on devices of different sizes. CSS3 is divided into many separate modules, which both extends its functionality and makes it easier to work with. In addition, animations and 3D transformations work better in CSS3.

JavaScript (or simply JS) is the third main technology used to build the front end of a web application. JavaScript is widely used to create dynamic and interactive web pages. In other words, it provides both simple and complex web animations that contribute greatly to a positive user experience. JavaScript is also actively used in many non-browser environments, including web servers and databases.

TypeScript is a superset of JavaScript that we often add to our front-end toolset. TypeScript provides proper code structuring thanks to both a dynamic approach to programming and the use of type checking. That makes it an excellent choice for developing complex, multi-layered projects.

Front-End

On the front end, frameworks are packages containing prewritten, standardized code in files and folders. They give developers a pre-tested, functional code base that the final design can then be customized on. Frameworks help developers save time, since they don't have to write every line of code from scratch. In web development, a JavaScript library on the front end is excellent for building user interfaces.

Back-End

Although the back end stays out of sight and isn't seen by users, it's the engine that drives your application and implements its logic. The web server, part of the back end, accepts requests from a browser, processes them according to specific logic, turns to the database if necessary and sends back the relevant content. The back end consists of a database, a server application and the server itself. Let's look at each component of the back-end stack in detail.

Back-End Application

The server application running on the server listens for requests, retrieves information from the database and sends responses. Server applications can be written in different server-side languages depending on the project's complexity. Rich Design uses two server-side programming languages: Ruby and Golang. Both of these languages are highly versatile and come with a list of indisputable benefits. Ruby provides good support for data validation, authentication, libraries for user management and more.

We also use Node.js, a JavaScript runtime environment. Node.js is commonly applied to back-end and full-cycle development. It has many ready-made solutions for almost every development challenge, which shortens custom web application development time. To recognize the differences between them in terms of scalability, performance, error handling and other criteria

Web frameworks greatly simplify back-end development, and which one you should choose depends on the programming languages you've picked. Every programming language has at least one universal framework. For a framework, libraries provide reusable packages written in the framework's language: for example, the code for a drop-down menu.

Frameworks aren't just about code, though: they're fully layered workflow environments. For example,  you can use Ruby on Rails as a Ruby framework and Gorilla as a Golang framework. Both provide clean syntax, rapid development and stability. I'll share a comprehensive overview of Ruby on Rails in my next blog post.

Databases

A database is an organized collection of information. Databases usually contain collections of data records or files. In e-commerce development, for example, these records or files would be sales transactions, product catalogs and inventories, and customer profiles.

There are many types of databases. In this post, I'll go into detail below only to outline some use cases for specific databases.

PostgreSQL. This database is especially well suited for financial, manufacturing, research and scientific projects, because PostgreSQL has excellent analytical capabilities and a powerful SQL engine that makes processing large amounts of data easy and smooth.

MySQL. Designed specifically for web development, MySQL provides high performance and scalability. This database is the best option for applications that rely on multi-row transactions, such as a typical banking application. Generally speaking, MySQL is still an excellent choice for a wide variety of applications.

MongoDB. This database has countless features, such as its document-based data model. MongoDB is an excellent choice for calculating distances and finding geographic information about customers, because this database has specific geospatial features. It's also good as part of the technology stack for e-commerce, event and gaming applications.   

Redis. Redis provides sub-millisecond response times, allowing millions of requests per second. This high speed is crucial for real-time applications, including advertising, healthcare and IoT.

Elasticsearch. This document-based data storage and retrieval tool is built for storing information and retrieving it quickly. Elasticsearch should be used to improve the user experience with faster search results.

Application Programming Interfaces

An Application Programming Interface (API) provides a connection between the server and the client. APIs also help a server pull data and transfer data to a database.

-Web-as-a-client-server-application-framework

[The web as a client-server application framework]

Countless services we use every day rely on many interconnected APIs. If even one of them fails, the service doesn't work. To avoid this, APIs need to be tested thoroughly. In my next blog post, I'll share an article on API TESTING showing you how it's done.

Server architecture

From the very first days of the development process, a developer needs a place to put the code they write. For that, we use a server.

There are many variations of server architecture, including ones where the entire environment lives on a single server and ones with a database management system (DBMS) separated from the rest of the environment. Your choice of server architecture should depend on factors such as performance, scalability, availability, reliability, cost and ease of management.

Web applications use cloud providers' services for their functionality. Because of its flexibility, reliability and security, AWS is recommended first and foremost for hosting web projects. Alternatives to AWS include Google Cloud Platform Services, Microsoft Azure and Heroku.

Now that we've covered the basics of the technology stack, let's move on to the criteria that will help you and your development team choose the most suitable technologies for your project.

The web application stack from top to bottom: front end, back-end application, API, database and server architecture.
Each layer is built on top of the one below it.

What to consider when choosing a tech stack

Keep in mind that the type of application you're building affects the technology you should choose. For example, a medical application requires high security, while audio/video streaming and file-sharing applications will need programming languages and frameworks that can cope with high loads.

When deciding on the components of your technology stack, analyze your web application against the criteria below to narrow down the options. Remember that technologies can be used in different combinations, and that frameworks can only be chosen once the programming language has been agreed on.

Project size

All projects can be classified by their complexity, and this will affect the choice of technology stack. As a project grows in size, its complexity usually increases too, as shown in the chart below:

-Dependency-between-project-complexity-and-size

[The dependency between project complexity and size]

Classify your project into one of these three categories:

Small projects. Thanks to design tools such as Readymag and Webflow, single-page sites, portfolios, presentations, digital magazines and other small web solutions can be implemented.

Mid-sized projects. Online stores, financial and enterprise applications require a more complex stack with several layers and a combination of languages, because these applications have more features and are developed with the help of frameworks. You should also consider cross-platform integrations, since mid-sized projects usually involve more than one system. For example, there may be a connection between a web application and the company's back-end systems.

Large projects. Social networks and marketplaces are considered large projects and may require greater scalability, speed and serviceability. First, identify the features you need to implement. Then prepare a list of relevant questions for your development partner, so they can determine whether their technologies and solutions fully support your idea. To avoid reinventing the wheel, you can also analyze similar solutions on the market and the technologies they use. Developing this kind of project usually involves a complex combination of tools, languages and technologies to build the separate parts of the application. Deciding on a technology stack for a complex project requires taking both functional and non-functional requirements into account.

Time to market

When your product needs to be developed and launched as quickly as possible, you might consider starting with a minimum viable product, or MVP. If you do, we recommend using ready-made solutions that help minimize the time spent preparing to enter the market. For example, the Ruby on Rails framework, which gives access to a set of core libraries, will save you a significant amount of time. There's a gem in the RubyGems repository for just about every feature you might want to implement. And if there isn't, it's easy to quickly find a solution for the feature in the Ruby community.

Third-party integrations will help you add functionality without writing it from scratch. Sticking to a popular technology will save you time when looking for developers. And most importantly, well-documented technologies make developing certain features easier.

Scalability

If you're planning rapid growth, keep in mind that the tools you choose for your technology stack should have enough potential to scale. You can scale your server or database vertically, by adding extra software for new tasks, or horizontally, by adding processing units or physical machines. React, Node.js, Golang and Ruby on Rails have excellent scalability. Your application will scale well on AWS, since AWS uses advanced Ethernet networking technology designed for scaling, along with high availability and security.

Security

Your application may require high security. If you're developing a healthcare app, for example, be careful when choosing technologies, since some may not be secure enough. That said, Ruby on Rails will be a good choice, since it provides a DSL (domain-specific language) that helps you configure a content security policy for your application.

Four criteria to consider when choosing a tech stack: project size, time to market, scalability and security.
Analyze your web application against these four criteria.

Components-of-the-eCuris-app

How can you lose your savings while developing a web application? Take precautions.

The following tips will help you get ready for web application development without regretting costs you could have avoided.

Build an MVP first, then test it. Keep in mind that in some cases a landing page can serve as an excellent, lightweight MVP. Make sure there will be demand for your product, and take into account all the bugs that come up during testing. Only then should you develop a full solution.

First an MVP is built, then it is tested, and then the full solution is developed.
MVP first, then testing, and the full solution last.

Use ready-made solutions whenever possible. Remember that you don't have to build every feature from scratch, because similar solutions may already exist as community-built libraries or third-party integrations (for example, sign-up through Facebook or Google). We know that Ruby on Rails offers many libraries that speed up web application and website development. ActiveAdmin is one of them. Using ActiveAdmin, developers can enable powerful content management functionality for web applications.

Save on cloud hosting solutions. Amazon Web Services can be preferred as the primary service for hosting the web projects you build. AWS offers flexible pricing, with each service priced à la carte. This means you pay only for the services you use. That makes a lot of sense for server infrastructure, given how unpredictable traffic is. This is especially true for startups, since it's hard for them to tell when they'll attract their first wave of users. That's why this pricing model suits startups best.

Think ahead. When choosing technologies for your web application, think about how you'll support the application in the long run. Support will be easier if the application has a good architecture and optimized code from the very beginning. Any unresolved problem will surface later and cause even worse problems. Support and maintenance should be taken into account when choosing a tech stack, because doing so will make updates easier, even if you decide to switch software development service providers.

Different web applications use different development tools. That's the best proof that there's no such thing as the best technology stack. You should choose your technology stack based on your project's specifics. The solution architects at our outsourcing company take your product requirements into account and turn them into an architecture and design that form the foundation of a first-class solution.