Tag

Snowflake ID

1 views collected around this technical thread.

Java Tech Enthusiast
Java Tech Enthusiast
Oct 14, 2024 · Backend Development

Replacing UUID Primary Keys with a Custom Snowflake ID Generator in Spring Boot 3.3

The article explains why UUIDv4 primary keys hurt performance and storage, then demonstrates how to replace them in a Spring Boot 3.3 application with a custom Snowflake‑based 64‑bit ID generator, providing full Maven setup, configuration, entity, service, REST controller, and Thymeleaf UI example.

JavaMySQLSnowflake ID
0 likes · 17 min read
Replacing UUID Primary Keys with a Custom Snowflake ID Generator in Spring Boot 3.3
Top Architect
Top Architect
Jan 6, 2023 · Databases

Why MySQL Discourages UUID Primary Keys and a Performance Comparison of Auto‑Increment, UUID, and Random Long IDs

This article investigates MySQL's recommendation against using UUIDs as primary keys by creating three tables with auto‑increment, UUID, and random (snowflake) keys, running insertion benchmarks with Spring Boot/JdbcTemplate, analyzing index structures, and discussing the advantages and drawbacks of each key strategy.

IndexingMySQLSnowflake ID
0 likes · 11 min read
Why MySQL Discourages UUID Primary Keys and a Performance Comparison of Auto‑Increment, UUID, and Random Long IDs
Architect's Tech Stack
Architect's Tech Stack
Mar 23, 2021 · Databases

Performance Comparison of Auto‑Increment, UUID, and Snowflake IDs as MySQL Primary Keys

This article evaluates the insertion speed and index impact of three MySQL primary‑key strategies—auto‑increment, UUID, and Snowflake‑generated long IDs—by building identical tables, running a Spring Boot/JdbcTemplate benchmark, and analyzing the resulting performance and structural differences.

Database IndexMySQLSnowflake ID
0 likes · 9 min read
Performance Comparison of Auto‑Increment, UUID, and Snowflake IDs as MySQL Primary Keys
Fulu Network R&D Team
Fulu Network R&D Team
Sep 10, 2020 · Backend Development

Snowflake ID Algorithm: Theory, Advantages, and .NET Implementation with Redis

This article explains the principles of primary keys, compares auto‑increment IDs and GUIDs, introduces the Snowflake ID structure, discusses its benefits and drawbacks, and provides a complete .NET implementation using Redis for dynamic worker‑ID allocation, including handling clock rollback and code examples.

.NETC++Snowflake ID
0 likes · 17 min read
Snowflake ID Algorithm: Theory, Advantages, and .NET Implementation with Redis
Architecture Digest
Architecture Digest
Apr 2, 2019 · Databases

Designing Scalable Database Architecture for High‑Concurrency Systems

This article explains how to design a database architecture that can handle millions of daily active users and tens of thousands of concurrent requests by using multi‑server sharding, extensive table partitioning, read‑write separation, and distributed unique‑ID generation techniques such as Snowflake.

Read-Write SeparationSnowflake IDdatabase sharding
0 likes · 20 min read
Designing Scalable Database Architecture for High‑Concurrency Systems
Architecture Digest
Architecture Digest
Nov 14, 2017 · Backend Development

Architecture and Technical Practices of JD.com’s Jingmai Message Center

The article details the Jingmai Message Center’s end‑to‑end architecture, covering message ingestion via Anycall and MQ, protocol conversion, Netty‑based push system, Snowflake ID generation, Elasticsearch storage, multi‑level caching, distributed locking, and the overall design principles that enable a scalable, reliable messaging platform.

ElasticsearchMessage QueueNetty
0 likes · 9 min read
Architecture and Technical Practices of JD.com’s Jingmai Message Center