Skip to main content

Posts

Showing posts from September, 2023

Liquibase in Action: Managing Database Versions with a Blockchain Analogy

In the ever-evolving landscape of software development, managing database versions is a critical aspect of maintaining the integrity and stability of an application. Changes to a database schema can have far-reaching consequences, affecting not only the application's functionality but also its performance and data integrity. This is where Liquibase comes into play. Liquibase is an open-source database schema version control and migration tool that provides a structured and efficient way to manage database changes. In this article, we will delve into how Liquibase helps manage database versions with practical examples while drawing parallels to the blockchain, highlighting the immutability and transparency of database changesets. The Challenge of Database Version Control Database version control is a fundamental concern for any software project that relies on a database for data storage. Over time, the database schema may need to evolve to accommodate new features,...

Adding Environment Variables to Kubernetes Containers from Secrets: A Comprehensive Guide with Examples

Introduction Kubernetes has emerged as the de facto standard for container orchestration, enabling developers to deploy, manage, and scale applications with ease. One critical aspect of deploying containerized applications is managing sensitive information like credentials, API keys, and other configuration parameters securely. Kubernetes provides a robust solution for this through secrets, which can be easily integrated into your application's environment variables. In this article, we'll explore how to add environment variables to Kubernetes containers from secrets, providing you with practical examples along the way. Understanding Kubernetes Secrets Kubernetes secrets are a way to store sensitive information securely within a cluster. Secrets can be used to store data like database passwords, API tokens, or any other confidential information. They are encoded as base64 strings to keep the data hidden from casual inspection. Step 1: Create a ...

Buidling a location tracking application in react native - Part 1 (abstract)

A location tracking application is where a developer really understands the concept of real time communication between client and server. I made LocalTrack - an application which tracks location data of a driver and the passengers registered for that drive can see the location on the map in real time. The basic idea is that the driver and passengers have applications installed to their phone. The driver presses start button on his app, and the application begins to send lat-long data to the server. The server then processes the data like publish-subscribe model and updates the location to all the subscribers(passengers). The aim is to display real time location on google map just like Uber does. But of course factors such as battery consumption, accuracy, latency etc make it really hard especially in a react native application. When a javascript developer thinks about real time communication, the first thing which crosses his mind is using websockets and so did I. If you come from a l...