One Big Server: Rethinking Microservices and the Cloud

2025-09-01
One Big Server: Rethinking Microservices and the Cloud

This article challenges the prevailing wisdom of microservices, arguing that today's powerful servers often make a single, large server architecture more cost-effective. It details the capabilities of a modern server, comparing the costs of cloud, self-hosted, and rented options. The author contends that for most web services, a high-performance server (plus a backup) suffices, unless extreme QPS or burstiness is involved. The complexities and costs of cloud-native architectures often outweigh their benefits. Vertical scaling (upgrading a server) is often more efficient than horizontal scaling (adding servers), prompting a re-evaluation of conventional wisdom.

Read more
Development server architecture

Perfect Random Floating-Point Numbers: A New Algorithm

2025-05-07
Perfect Random Floating-Point Numbers: A New Algorithm

Traditional methods for generating random floating-point numbers suffer from precision loss and bias. This paper introduces a new efficient algorithm that generates perfectly uniform random floating-point numbers in the interval [0, 1), addressing the shortcomings of traditional approaches. The algorithm proceeds in two steps: first, generating a fixed-point random number with a specific granularity; second, filling in the remaining precision bits based on the rounding mode. The algorithm's performance is comparable to traditional methods, and testing verifies its uniformity and accuracy. This research is significant for simulations and computations relying on precise floating-point random numbers.

Read more
Development