Kafka and Redis Add-on Explained by Gemini

Kafka's mechanism closely resembles that of the Robot Operating System (ROS), a prominent robot communication system. It is developed on the Java Virtual Machine and functions as a logbook, enabling users to view, pool, and manage data efficiently. Utilize Kafka to manage real-time price data from various global exchanges. This represents a prevalent and robust … Continue reading Kafka and Redis Add-on Explained by Gemini

JWT Overview

JWT is for authorization, not authentication — Authentication checks credentials (e.g., username/password), while authorization ensures requests are made by the logged-in user. Traditional session-based authorization — User info is stored on the server; client sends a session ID via cookies with each request. JWT-based authorization — Server sends a signed JSON Web Token back to … Continue reading JWT Overview

Common Design Patterns

The Singleton pattern is a way to guarantee that a class has only one instance throughout your entire application Factory Method pattern creates objects without specifying exact class. Abstract Factory Create families of related objects. Builder Construct complex objects step-by-step. Prototype Clone objects without depending on their class. Adapter Make incompatible interfaces work together. Decorator … Continue reading Common Design Patterns

SOLID Principle

S — Single Responsibility Principle (SRP) A class should have one job and only one reason to change. Below codes separate printer, saver to different classes class Report: def __init__(self, data): self.data = data class ReportPrinter: def print(self, report: Report): print(report.data) class ReportSaver: def save(self, report: Report, filename): with open(filename, 'w') as f: f.write(report.data) O … Continue reading SOLID Principle