Skip to main content

Generating Data Matrix and PDF417 in Python

· 5 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

While QR codes are great for marketing and consumers, industrial and government applications often require formats that are either more compact or hold significantly more data. This article covers how to generate Data Matrix (popular in healthcare and aerospace) and PDF417 (the standard for ID cards and shipping) using Python.

Generating Barcodes in Python: A Step-by-Step Guide

· 5 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Generating barcodes is a surprisingly simple task in Python thanks to a few highly specialized libraries. Whether you're building an inventory system, a ticketing app, or a simple tracking tool, Python can generate industry-standard barcodes in just a few lines of code.

The most popular and robust library for this task is python-barcode.

emoji.demojize() vs. clean-text Performance Comparison

· 6 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Performance Showdown: emoji.demojize() vs. clean-text for Emoji Handling

When choosing a library for high-throughput text preprocessing, performance is often as important as accuracy. Both the emoji library's demojize() function and the comprehensive clean-text library can remove or replace emojis, but they serve different purposes, which impacts their speed and efficiency.

Since no direct, widely-published benchmark comparing only these two specific functions exists, this analysis focuses on their architectural differences and their respective performance profiles, based on typical NLP use cases.

Programmatically Detect Emoji in Text with Python

· 5 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

🔎 How to Programmatically Detect Emoji in Text with Python

Programmatically detecting and extracting emoji from text is a common task in data science and natural language processing (NLP). Unlike standard ASCII characters, emojis are complex Unicode characters or sequences that can span multiple code points, making simple string checks or basic regular expressions unreliable.

The most robust and recommended approach in Python is to use a specialized third-party library that maintains the latest list of Unicode emoji definitions.

Full gRPC Streaming on AWS

· 4 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Full gRPC Streaming on AWS: ALB to ECS Architecture

This architecture pattern is the definitive solution for running full-featured, high-performance gRPC services on AWS, leveraging dedicated container services (ECS/EKS) and the Application Load Balancer (ALB) for robust HTTP/2 transport.

Does AWS API Gateway Support gRPC?

· 9 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

The question of whether AWS API Gateway supports gRPC is crucial for architects planning microservices deployments on AWS. The answer, which has evolved, is a nuanced Yes, but primarily through the HTTP API and only for unary calls, while traditional gRPC streaming requires alternative AWS services.

Integrating gRPC with AWS Lambda

· 7 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Integrating gRPC with AWS Lambda: Challenges and Solutions

While gRPC is the gold standard for high-performance microservices, integrating it directly with AWS Lambda—a serverless, ephemeral computing service—presents fundamental architectural mismatches. Lambda is designed for short, stateless execution, whereas gRPC is optimized for persistent, long-lived connections over HTTP/2.

This article details the challenges of this integration and the primary methods developers use to make gRPC work in a serverless environment.

AWS Alternatives to gRPC

· 7 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

AWS Alternatives to gRPC: Serverless Communication Patterns

When building an application on AWS, especially using Lambda and other serverless components, the landscape for inter-service communication shifts dramatically compared to traditional VM-based or containerized microservices where gRPC shines.

While gRPC is possible to use with AWS Lambda (via HTTP/2 support in API Gateway or Application Load Balancer), the complexity of managing the gRPC framework within the Lambda execution environment often makes it non-ideal.

The fundamental shift in AWS is moving from synchronous RPC (Remote Procedure Call) patterns to more flexible Asynchronous Event-Driven and Managed API patterns.

gRPC in Python Example

· 7 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

gRPC in Python: A Practical Example and When to Choose It

gRPC (gRPC Remote Procedure Calls) is a modern, high-performance, open-source framework developed by Google that enables communication between services. It relies on Protocol Buffers (protobuf) for its Interface Definition Language (IDL) and uses HTTP/2 for transport.

It has become the standard choice for communication in microservices and polyglot (multi-language) environments where performance, efficiency, and strong typing are critical.

Looking for more content?
Hrekov Blog contains 275 articles. Browse the blog archive or Explore the full timeline.