14th March 2024

ScyllaDB is better than Cassandra, and here’s why.

Introduction Of ScyllaDB ScyllaDB is one of the newest NoSQL database which offers really high throughput at sub millisecond latencies. The important point is that it accomplishes this at a fraction of the cost of a modern NoSQL database. ScyllaDB implements almost all of the features of Cassandra in C++. But saying it’s a mere C++ port would be an understatement. Developers at Scylla have made a lot of changes under the hood which are not visible to the user but that lead to a huge performance improvemen You are kidding, right? No, I’m not. As you can see (if you went to that […]
29th February 2024

What Is Cassandra? Meaning, Working, Features, and Uses

What Is Cassandra?  Cassandra is defined as an open-source NoSQL data storage system that leverages a distributed architecture to enable high availability, scalability, and reliability, managed by the Apache non-profit organization.  Working on an Apache Cassandra Project  The modern, hyperconnected world is replete with data, and there is always some new information to record and leverage. There is always new data that enterprises need to process and refer to via their applications and decision-making processes. But primarily, one must store data; this data storage for enterprise use is referred to as a database.  A database is an organized collection of […]
10th January 2024

Database Schema Design – Complete Guide

Here are the key things to know about database schema design: Not all databases are equal. The design of a database schema influences how efficiently your database runs and how quickly you can retrieve information. However, designing a database schema is easier said than done. This article offers an overview of how database schema design works, as well as examples and best practices to help you optimize database schema design. What Is a Database Schema? Simply put, a database schema is a formal description of the structure or organization of a particular database (DB). The term database schema is most […]
9th January 2024

How to Use One Command to Create RESTful APIs with TypeORM CLI on Node.js

TypeORM connects applications to databases. In this article, I’ll show you how to quickly create a new RESTful API microservice on Express (NodeJS) that integrates with MySQL using TypeORM. If you’re already familiar with using ORMs, let’s jump to one-liners. Outline Definitions Prerequisites One Liners 1. Install TypeORM npm install typeorm 2. Initialize typeorm init –name user-microservice –database mysql –express Explanation: This command creates a new TypeORM project with the name user-microservice and scaffolds the necessary code to use Express and MySQL. Explanation: routes.ts is the entry point for the API. UserController.ts is the orchestrator between routes and entity. User.ts is the entity that defines the table schema for […]
18th November 2023

Django: 10 Common Anti-Patterns to Avoid 🦄

This post aims to address the ten most common anti-patterns in Django, a popular Python framework. Make sure to avoid these pitfalls to ensure the production-readiness of your code. No time to waste, let’s get started 🏃‍♂️ 1. Fat Models Remember, Django’s philosophy is “Fat models, thin views.” However, bloating models with logic is an anti-pattern. Encapsulate the related logic into separate classes or functions. 2. Using Null=True on String-Based Fields In Django, empty string values will always be stored as empty strings, not as NULL. Don’t use Null=True for string-based fields like CharField and TextField unless necessary. 3. Repeating […]