Tag

middleware

0 views collected around this technical thread.

Architect
Architect
Jun 15, 2025 · Backend Development

How Data Redundancy and Real‑Time Sync Solve Microservice Data Dependency Issues

This article explains how a supply‑chain system moved from strict microservice boundaries to a data‑redundancy and real‑time synchronization approach, using Bifrost middleware to keep product information consistent across order and purchase services while improving performance and reducing coupling.

Bifrostbackend architecturedata redundancy
0 likes · 10 min read
How Data Redundancy and Real‑Time Sync Solve Microservice Data Dependency Issues
Code Mala Tang
Code Mala Tang
Jun 12, 2025 · Backend Development

Essential FastAPI Middleware Guide: Boost Security, Performance, and Functionality

This article explains how FastAPI middleware sits between incoming requests and outgoing responses, detailing built‑in and third‑party middleware such as CORS, GZip, HTTPS redirect, session, trusted host, error handling, rate limiting, authentication, custom headers, logging, timeout, trailing‑slash handling, IP whitelisting, proxy headers, CSRF protection, context management and global state, each with usage scenarios and code examples.

BackendFastAPIPython
0 likes · 20 min read
Essential FastAPI Middleware Guide: Boost Security, Performance, and Functionality
php中文网 Courses
php中文网 Courses
Jun 12, 2025 · Backend Development

Build a High‑Performance RESTful API with Go’s Gin Framework – Step‑by‑Step Guide

This tutorial walks you through setting up a Go environment, initializing a project, and using the high‑performance Gin framework to create a complete RESTful API with CRUD operations, middleware for logging and authentication, error handling, project structure optimization, and deployment best practices.

CRUDGinGo
0 likes · 9 min read
Build a High‑Performance RESTful API with Go’s Gin Framework – Step‑by‑Step Guide
Code Mala Tang
Code Mala Tang
Jun 2, 2025 · Backend Development

Unlocking FastAPI: A Deep Dive into Starlette, ASGI, and Middleware Architecture

This article explains how FastAPI builds on Starlette, covering the ASGI protocol, Starlette's initialization, middleware design—including ExceptionMiddleware and user-defined middleware—and routing mechanisms, while providing concrete code examples and performance insights for backend developers.

ASGIFastAPIRouting
0 likes · 22 min read
Unlocking FastAPI: A Deep Dive into Starlette, ASGI, and Middleware Architecture
Code Mala Tang
Code Mala Tang
May 24, 2025 · Backend Development

7 Essential FastAPI Middleware to Boost Performance, Security, and Maintainability

This guide explores seven practical FastAPI middleware components—covering CORS, GZip compression, request logging, trusted hosts, HTTPS redirection, custom exception handling, and rate limiting—to help developers build faster, safer, and more maintainable APIs.

FastAPIPythonSecurity
0 likes · 7 min read
7 Essential FastAPI Middleware to Boost Performance, Security, and Maintainability
Code Mala Tang
Code Mala Tang
May 1, 2025 · Backend Development

Master Advanced FastAPI Routing: Modular APIs, Versioning, and RBAC

This tutorial explains how to build scalable, maintainable FastAPI APIs by modularizing routers, implementing path‑based version control, centralizing dependency injection, applying role‑based access control, using custom middleware, and nesting routers for complex applications.

API designFastAPIRBAC
0 likes · 10 min read
Master Advanced FastAPI Routing: Modular APIs, Versioning, and RBAC
Code Mala Tang
Code Mala Tang
Apr 29, 2025 · Backend Development

Master FastAPI Middleware: From Built‑in to Custom Auth and Logging

This guide explains how FastAPI middleware works, outlines its request‑response lifecycle, shows built‑in examples like CORS and HTTPS redirect, and demonstrates how to create custom middleware for logging, authentication, and other cross‑cutting concerns.

AuthenticationBackendFastAPI
0 likes · 6 min read
Master FastAPI Middleware: From Built‑in to Custom Auth and Logging
DaTaobao Tech
DaTaobao Tech
Apr 23, 2025 · Product Management

Reading Notes on Taobao's Ten-Year Product and Technology Evolution

The notes synthesize two books on Taobao’s decade‑long evolution, detailing product category growth, key concepts like SPU/SKU, business challenges and pricing models, a shift from LAMP to Java‑based architecture, and pioneering middleware such as TFS, Tair, HSF, TDDL, culminating in a massive open platform with hundreds of APIs.

System Architecturee‑commercemiddleware
0 likes · 20 min read
Reading Notes on Taobao's Ten-Year Product and Technology Evolution
Architect's Guide
Architect's Guide
Mar 6, 2025 · Databases

Common Practices for Database Sharding and Pagination Optimization

This article explains typical sharding strategies—hash, range, and middle‑table—describes SDK, Proxy, and Sidecar middleware forms, and presents several pagination optimization techniques such as global query rewriting, average pagination, disabling cross‑page queries, secondary queries, and using intermediate tables to improve performance in distributed databases.

SQLdatabasemiddleware
0 likes · 17 min read
Common Practices for Database Sharding and Pagination Optimization
Architecture & Thinking
Architecture & Thinking
Feb 28, 2025 · Backend Development

Mastering Gin: Build High‑Performance Go Web Services Step‑by‑Step

This guide introduces the lightweight Gin framework for Go, outlines its key features, shows how to install and set up the environment, and provides complete code examples for building a basic web service with routing, middleware, JSON handling, and controller organization, culminating in a functional API demonstration.

APIBackendGin
0 likes · 10 min read
Mastering Gin: Build High‑Performance Go Web Services Step‑by‑Step
DeWu Technology
DeWu Technology
Feb 10, 2025 · Operations

White‑Screen Operations Platform for Multi‑Cloud Kubernetes Middleware Management

The White‑Screen Operations Platform unifies multi‑cloud Kubernetes cluster and middleware management—automating Kafka, Elasticsearch, node, PV, and YAML tasks through a visual UI, eliminating fragmented command‑line scripts, cutting operation times from hours to minutes, standardizing processes, providing auditability, and delivering significant cost savings while scaling for future Kubernetes resources.

KubernetesMulti-CloudObservability
0 likes · 20 min read
White‑Screen Operations Platform for Multi‑Cloud Kubernetes Middleware Management
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 7, 2025 · Backend Development

Getting Started with Koa: A Lightweight Node.js Framework for Building HTTP Servers

This article introduces native Node.js HTTP server creation, explains request and response concepts, and then demonstrates how to use the Koa framework—including installation, middleware, routing, body parsing, and the onion model—to build clean, maintainable backend services.

BackendHTTPJavaScript
0 likes · 11 min read
Getting Started with Koa: A Lightweight Node.js Framework for Building HTTP Servers
php中文网 Courses
php中文网 Courses
Feb 6, 2025 · Backend Development

Implementing File Upload and Download with CakePHP Middleware

This article explains how to create a CakePHP middleware class to handle file upload and download requests, register it in the application, and use a simple HTML form and URL pattern to enable users to upload files and retrieve them via a download endpoint.

CakePHPFile UploadPHP
0 likes · 6 min read
Implementing File Upload and Download with CakePHP Middleware
Architecture Development Notes
Architecture Development Notes
Feb 5, 2025 · Backend Development

Mastering Axum Fallbacks: Build Unbreakable Rust Web Routes

Explore how to construct robust, multi‑layered fallback mechanisms in Rust’s Axum framework—covering basic route guards, global error handling, middleware validation, dynamic redirects, performance optimizations, and monitoring—so every unknown HTTP request is safely captured, logged, and intelligently responded.

AxumError HandlingFallback
0 likes · 10 min read
Mastering Axum Fallbacks: Build Unbreakable Rust Web Routes
Laravel Tech Community
Laravel Tech Community
Dec 13, 2024 · Backend Development

Using Laravel 11 Rate Limiting: Custom, Global, Segmented, and Redis‑Based Limits

This article explains how Laravel 11's built‑in rate‑limiting service can be configured with custom, global, segmented, and Redis‑backed limits, showing code examples for defining limiters, custom responses, multiple constraints, and applying them to routes via middleware.

BackendLaravelPHP
0 likes · 6 min read
Using Laravel 11 Rate Limiting: Custom, Global, Segmented, and Redis‑Based Limits
php中文网 Courses
php中文网 Courses
Dec 4, 2024 · Backend Development

Using the Laravel context() Helper for Managing Application Context Data

The article introduces Laravel's new context() helper, demonstrating its basic usage and a real‑world multi‑tenant example, showing how to add, retrieve, and default context values and simplify shared data handling throughout the request lifecycle.

BackendLaravelPHP
0 likes · 2 min read
Using the Laravel context() Helper for Managing Application Context Data
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 4, 2024 · Frontend Development

Deep Dive into Zustand: Store Creation, TypeScript Types, and Middleware Design

This article explains how Zustand creates stores using the create function, details the TypeScript types such as StateCreator, SetStateInternal, Get and Mutate, demonstrates middleware implementation, clarifies the role of createImpl and useStore, and answers common memory‑leak concerns for React developers.

ReactTypeScriptZustand
0 likes · 25 min read
Deep Dive into Zustand: Store Creation, TypeScript Types, and Middleware Design
php中文网 Courses
php中文网 Courses
Oct 29, 2024 · Backend Development

New Methods for Managing Middleware Priority in Laravel's HTTP Kernel

Laravel now offers two new methods, addToMiddlewarePriorityAfter and addToMiddlewarePriorityBefore, allowing developers to programmatically control the execution order of middleware in the HTTP kernel, with practical code examples demonstrating package service provider integration for flexible and maintainable middleware management.

BackendHTTP KernelLaravel
0 likes · 3 min read
New Methods for Managing Middleware Priority in Laravel's HTTP Kernel
php中文网 Courses
php中文网 Courses
Oct 17, 2024 · Backend Development

Understanding Laravel Request/Response Lifecycle

This guide explains Laravel's request/response lifecycle step by step, covering user requests, web server handling, routing, middleware security, controller processing, view rendering, and lifecycle hooks, enabling developers to build efficient, secure, and scalable backend applications.

ControllerLaravelRouting
0 likes · 9 min read
Understanding Laravel Request/Response Lifecycle
php中文网 Courses
php中文网 Courses
Oct 9, 2024 · Backend Development

Extending PHP Function Logging with Laravel

This article demonstrates how to install the Monolog package, configure a custom logging channel in Laravel's config/logging.php, and use the Log facade to record custom messages, including a practical middleware example that logs API request details such as method, URI, and execution duration.

BackendLaravelLogging
0 likes · 2 min read
Extending PHP Function Logging with Laravel