The Concept of Stateful and Stateless Applications

We often hear the terms "stateful" and "stateless". Understanding these concepts has a critical importance since it is one of the most essential questions when designing and architecting software applications. In today's blog post, I wanted to talk about these two very basic concepts. As the simplest definition, stateful application means an application which remembers the past, similarly, stateless application means an application which doesn't remember the past. The state we have been talking about might be saved in a database, a file on the disk, a cookie in a browser etc. As an example, consider an e-commerce website. When…

Read More

MongoDB through C# – Using the Official Library

MongoDB is a popular NoSQL database, which means it doesn't use tables like traditional databases. Instead, it saves data as 'documents', which are like flexible data entries. If you're using C# and want to work with MongoDB, there's an official library made just for that. In this post, we'll check out this library, see some basic MongoDB info, and walk through some C# code examples for common tasks. In MongoDB, data is saved in collections as documents. Think of collections like folders on your computer, and documents like files in those folders. But here, each document can have different data…

Read More

SQL Server Performance Tips for High Volume Databases

As businesses grow, so does their data. A big amount of data can slow down your SQL Server if you don’t manage it right. This article shares some top tips to speed up your SQL Server when dealing with a lot of data. On the other hand, before we jump into the tips, it's important to know there's no magic button that fixes everything. Each problem is unique. While the tips I've given here can help many setups, they might not work for everyone. Simply applying fixes without understanding can cause more issues. It's really important to first figure out…

Read More