Advance Planning for Data Architecture for Your Startup
Table of content
Have you faced a situation when you suddenly realized that your large project needs to be rebuilt because you ran into an unsolvable problem related to performance? When your company has a project that is popular enough and may potentially face millions of online users we need to stop and think about it.

Correctly built architecture is the key to a successful startup. It is recommended to plan an architecture that anticipates growth in the number of users of the product over the next few years. This will help you to get a stable startup.
This is where sharding comes in. Sharding is the process of storing data records across multiple machines. It can be done manually or by using the solutions provided in the market. Is your system based on the relational database? It is important to decide how you work with your data. How is it performed in your project? Every data query must be optimized, partitioned and cached inside your data model, knowing about its expensive points. It is recommended to perform data deletion in a deferred way but not at the moment of the operation. Taking care of caching is important as the data which is stored within the cache must be consistent and must match the real data as precisely as possible. A common issue is when data that resides inside the cache is inconsistent. This point requires additional effort to be put for analysis of these situations and graceful handling.
Data sharding as part of your software architecture
The next most important point is to protect the solution against hardware failures. Here it is necessary to think about replication and survival during data losses.
Many free and commercial solutions on the market are intended to cope with these issues. For example, a good idea is to use solutions such as MongoDB, Cassandra and Hadoop, as they are proven and stable.
As you will see further, many solutions for high load systems are based on key-value based data. That’s because this data model covers many aspects of application systems, excepting some cases, where the relational data model is mandatory. Those are the cases where complex calculations need to be performed, e.g. reporting systems.
Developers use MongoDB as one variant of the solution to improve the software architecture
The word MongoDB is made of five letters taken from the word Humongous. It is classified as a NoSQL database. MongoDB ignores the traditional relational table-based database structure. It uses JSON-like documents with dynamic schemas. For some high load applications, the traditional relational model can be heavier than needed.
Cassandra as one variant of the solution to supply your startup with the information store
Cassandra was created for fast writes, scalability and fault tolerance. It has proven itself stable. It is a non-relational database with a partitioned wide-column storage model. A special API is provided to interact either with the node or with a cluster.
Hadoop as one variant of the solution to power your startup with Big Data store
Hadoop is a solution for working with a cluster of computing nodes. Each node carries and provides its resources for the cluster – the amount of physical storage and computing power. It provides a special technology that distributes the query across the cluster, run it and get the result. Optimizing the communication cost is essential.
That technology is called “map and reduce” which means that we have to map data and then reduce the data set to get the actual result at the side of the receiver.
Each Map function output is allocated to a particular reducer by the application’s partition function for sharding purposes.
The framework calls the application’s Reduce function once for each unique key in the sorted order. Reduce can iterate through the values that are associated with that key and produce zero or more outputs.
The distributed file system HDFS provided by Hadoop manages the storage of files in a cluster of Hadoop instances. The solution will process data replication and fail-over procedures. Java developers know well how important it is to choose the right solution for that purpose.
Other variants of solutions
Other options can be chosen as well. In some cases, it is even better to build your own proprietary solution.
Java or .NET?
Java environment is preferred by many vendors due to compatibility between platforms and the amount of available open source solutions.
Popular highly loaded projects prefer different technical solutions, for example, .NET. If your platform is developed using .NET, it is worth considering the same approaches for solutions to similar problems.
Data Partitioning
The main bottleneck in solutions that require top performance is the speed of reading and writing the data record on the media. File operations must be designed around the specifics of the file system.
When we face this topic we see two different partitioning types: vertical and horizontal partitioning.
Vertical Partitioning
Vertical partitioning splits data by columns: frequently used fields are stored apart from rarely used ones, so each read touches less data (see Microsoft’s data partitioning guidance).
Horizontal partitioning
To use the joint computing power of a cluster, horizontal partitioning is applied: rows are split across different nodes of the cluster with the solutions mentioned above. This is called horizontal partitioning. See the diagram below.
Preparing for high loads by using horizontal partitioning
All of the data records must be grouped. These groups can be separated and located on different nodes. In such a system, when data is located on different nodes, we need to maintain a connection to the target node so we can access and manage it.
Stability
When we touch on stability, we need to speak about the replication of data between nodes. The advice here is to keep the replica on the next node for each node. Then the replica is easy to find. The geographical distribution of data nodes should also be considered.
Balancing
Web requests are forwarded from the load balancing server to the target web server which is a member of the cluster. This is done with the standard features of web servers. The most popular open source web server is Nginx.
Architecture of a typical high load system
The most popular Web Servers support balancing based on Round Robin. This is the simplest scenario. Along with the Round Robin algorithm, many alternative algorithms are provided by Web Servers. This allows you to pass a request to multiple IP addresses of Application Web Servers inside the cluster. This sample architecture is shown in the next diagram.

Typical architecture of a startup ready for high loads
In this case, the request will be passed to members of the cluster. This means that the load will be distributed proportionally to all members of the cluster.
Conclusion
The best idea is to think about efficiency during the design of architecture. This will save you effort on optimizing the critical points when you face high load on your startup. The solutions mentioned above are practically used by many vendors and are indispensable helpers. It is recommended to plan the architecture of your startup product in advance.
Update (November 2026): This article dates from 2015. Since .NET Core 1.0 in June 2016, .NET has run on Windows, macOS and Linux, so cross-platform support no longer separates Java from .NET.
You can find more information and articles on our website: Diatom Enterprises
All registered trademarks and copyrights are properties of their respective owners.



