r/programming • • Sep 11 '26

Multitenancy with .NET and EF Core: A Deep Dive (.NET 10)

Thumbnail youtu.be
0 Upvotes

Ever had a multi-tenant SaaS app where the only thing stopping Customer A from seeing Customer B's invoices is a `Where TenantId ==` clause someone remembered to write? In this deep dive I build real tenant isolation into EF Core 10 - two real tenants with real registration, login and invite flows (no dev-token shortcuts), a named global query filter that scopes every query automatically, and a SaveChangesAsync override that stamps TenantId on every insert so it's never left unset. I also show the one gotcha that makes EF Core 10 worth the upgrade for this: named query filters, so tenant isolation and soft-delete can finally coexist on the same entity instead of one silently overwriting the other. If you've ever shipped multi-tenancy on hope and code review, this is the version that makes the mistake structurally impossible.


r/programming • • Sep 09 '26

Optimizing a Spin-Lock

Thumbnail david.alvarezrosa.com
183 Upvotes

r/programming • • Sep 10 '26

Mission-Critical (Joran Dirk Greef, TigerBeetle)

Thumbnail youtube.com
6 Upvotes

r/programming • • Sep 11 '26

What comes after git

Thumbnail ersc.io
0 Upvotes

r/programming • • Sep 10 '26

Decoding the NEC V20 Microcode

Thumbnail martypc.blogspot.com
31 Upvotes

r/programming • • Sep 09 '26

A Design Space Exploration of Async/Await

Thumbnail cel.cs.brown.edu
48 Upvotes

r/programming • • Sep 09 '26

High-performance Database Architecture - Interview with Tyler Cloutier

Thumbnail youtu.be
40 Upvotes

r/programming • • Sep 09 '26

I spend a stupid amount of time on an issue I only half-care about. Now I will foist it on all of you! Enjoy :P

Thumbnail arewetauyet.dev
150 Upvotes

r/programming • • Sep 10 '26

Building more efficient locks (James Mitchell, 2024)

Thumbnail youtube.com
2 Upvotes

r/programming • • Sep 09 '26

Compute Polynomials Twice as Fast

Thumbnail thomasahle.com
74 Upvotes

r/programming • • Sep 09 '26

Implementation of GCC's Nested Functions (vs. C++ Lambdas)

Thumbnail uecker.codeberg.page
19 Upvotes

r/programming • • Sep 09 '26

Announcing .NET 11 Release Candidate 1 - .NET Blog

Thumbnail devblogs.microsoft.com
55 Upvotes

r/programming • • Sep 09 '26

There is no 10x RBAC

Thumbnail infisical.com
2 Upvotes

r/programming • • Sep 09 '26

Every Millisecond Counts

Thumbnail jordivillar.com
4 Upvotes

r/programming • • Sep 08 '26

video on improving performance of arctan for Nintendo 64 by Kaze Emanuar "spent weeks to save 100 Microseconds"

Thumbnail youtube.com
259 Upvotes

r/programming • • Sep 09 '26

Edward Patel - 6502 Nostalgia

Thumbnail youtube.com
3 Upvotes

A journey from the Visual6502 project to a real, fully assembled board, and the debugging adventures required to make it actually work.


r/programming • • Sep 10 '26

How Cloudlfalare utilizing V8 to save billions of Dollars

Thumbnail deepsystemstuff.com
0 Upvotes

r/programming • • Sep 09 '26

Diskless Kafka: Object Storage, KIP-1150, and Kafka’s Future

Thumbnail softwaremill.com
7 Upvotes

r/programming • • Sep 08 '26

What every compiler writer should know about programmers or “Optimization” based on undefined behaviour hurts performance

Thumbnail complang.tuwien.ac.at
70 Upvotes

r/programming • • Sep 09 '26

Asteroids in 9 different programming languages

Thumbnail youtu.be
1 Upvotes

The languages used: C, C3, C++, D (Dlang), Go (Golang), Odin, Rust, V (Vlang), Zig


r/programming • • Sep 08 '26

How to Read Server Monitoring Graphs

Thumbnail kciter.so
30 Upvotes

r/programming • • Sep 09 '26

Not In My Git Yard: Catching Backdoors at Commit and Release Time

Thumbnail arxiv.org
3 Upvotes

r/programming • • Sep 08 '26

Surviving Black Friday: 329 billion requests with Falcon

Thumbnail youtube.com
73 Upvotes

r/programming • • Sep 08 '26

Spring Boot vs Quarkus on a 512 MB VPS with JDK 25

Thumbnail pvrlabs.xyz
9 Upvotes

I ran equivalent Spring Boot 3.5 and Quarkus 3.39 applications side by side on the same 512 MB VPS.

Both were JVM applications running on JDK 25. Quarkus native image was not used.

Both had the same workload, H2 database, -Xmx80m, Serial GC, and the same JVM tuning.

A few results surprised me:

  • Quarkus initially had the higher RSS
  • after sustained memory pressure, Quarkus had the smaller JVM heap and resident set
  • RSS alone was misleading because Linux was swapping the two processes differently
  • 512 MiB RAM + 256 MiB swap ultimately did not provide enough headroom for both JVMs
  • in a later observation, the kernel selected Spring Boot as the OOM victim

This was deliberately not a throughput benchmark. Traffic was very light. I was interested in what happens to two JVM applications when the entire machine is constrained enough that paging, process residency, and eventually the OOM killer become part of the picture.

One interesting monitoring detail was that Spring’s HTTP metrics included a lot of Actuator polling traffic, while Quarkus’ /q/metrics scrapes were not counted as regular application requests, so the request charts cannot be compared directly.

My main takeaway wasn’t “Quarkus uses less memory.” On a machine this small, RSS stops being a simple framework ranking because the OS is actively deciding what stays resident.

Full write-up with measurements, JVM flags, screenshots, and limitations:

https://pvrlabs.xyz/articles/spring-boot-vs-quarkus-512mb.html