Tagged articles
6 articles
Page 1 of 1
Code Wrench
Code Wrench
Jan 31, 2026 · Backend Development

Build a Fast, Concurrent, Single‑File Lottery System with Go

This article shows how to quickly create a fair, concurrent, single‑binary lottery system for a company event using Go's standard library, sync.RWMutex for thread safety, and the embed package to bundle static assets without any external dependencies.

GoHTTP serverLottery System
0 likes · 9 min read
Build a Fast, Concurrent, Single‑File Lottery System with Go
Sohu Tech Products
Sohu Tech Products
Jul 16, 2025 · Backend Development

Designing a Scalable Lottery System: Stock Pre‑allocation, Real‑time Risk Control & Dynamic Probability

This article details the design of a reusable, configurable lottery platform for a youth‑focused social app, covering business background, pain points, a modular data model, micro‑service architecture, stock pre‑allocation with optimistic and distributed locks, real‑time risk detection, over‑issue prevention, probability calculation, and future AI‑driven enhancements.

Backend ArchitectureLottery Systemdistributed locking
0 likes · 26 min read
Designing a Scalable Lottery System: Stock Pre‑allocation, Real‑time Risk Control & Dynamic Probability
Sohu Tech Products
Sohu Tech Products
May 7, 2025 · Backend Development

Design and Implementation of a Scalable Lottery Activity Platform

The article describes how the FoxFriend team built a scalable, configurable lottery‑activity platform that replaces manual feed‑based draws with a modular micro‑service architecture, featuring a flexible prize‑tier data model, pre‑occupied inventory buckets, multi‑tenant isolation, high‑concurrency stock deduction, user risk controls, accurate probability handling, and a roadmap toward AI‑driven optimization.

Backend DevelopmentLottery Systemdistributed-lock
0 likes · 25 min read
Design and Implementation of a Scalable Lottery Activity Platform
Java Backend Technology
Java Backend Technology
Jan 23, 2022 · Backend Development

Build a High‑Performance Lottery System with Spring Boot, MyBatis‑Plus & Redis

This tutorial walks through creating a Spring Boot lottery application that caches activity, prize, and record data in Redis, covering project setup, Maven dependencies, YML configuration, MyBatis‑Plus code generation, Redis key management, lottery API, event‑driven data loading, stock handling, and asynchronous record saving.

Backend DevelopmentJavaLottery System
0 likes · 24 min read
Build a High‑Performance Lottery System with Spring Boot, MyBatis‑Plus & Redis
Xianyu Technology
Xianyu Technology
Jun 17, 2020 · Backend Development

Lottery System Risk Management and SDK Integration

Xianyu mitigated lottery‑related financial loss by centralizing rights management, decoupling UI from business logic, and providing a unified SDK with simple draw APIs, while adding real‑time log backflow, comprehensive accounting and monitoring, cutting configuration time by over 50 % and eliminating UI‑only risk.

BackendLottery SystemSDK
0 likes · 10 min read
Lottery System Risk Management and SDK Integration
Tencent Cloud Developer
Tencent Cloud Developer
Oct 19, 2018 · Backend Development

Design and Implementation of a Go Backend for a Lottery Mini Program

The article describes how to build a Go‑based backend for a WeChat lottery mini‑program using the Echo framework, Tencent Cloud load balancer, Nginx, Redis and MySQL, detailing the system architecture, API design, database and Redis integration, WeChat login flow, activity state machine, and lessons learned.

Backend DevelopmentGoLottery System
0 likes · 12 min read
Design and Implementation of a Go Backend for a Lottery Mini Program