Readit News logoReadit News
donjoe commented on Exploring PostgreSQL 18's new UUIDv7 support   aiven.io/blog/exploring-p... · Posted by u/s4i
tracker1 · 2 months ago
This is only really true if leaking the creation time of the record is itself a security concern.
donjoe · 2 months ago
To me, the most important question is: how do I scale v7 in an environment of 20+ engineers?

When using v7, I need some sort of audit that checks in every API contract for the usage of v7 and potential information leakage.

Detecting V7 uuids in the API contract would probably require me to enforce a special key name (uuidv7 & uuid for v4) for easier audit.

Engineers will get this wrong more than once - especially in a mixed team of Jr/sr.

Also, the API contracts will look a bit inconsistent: some resources will get addressed by v7, others by v4. On top, by using v4 on certain resources, I'd leak the information that those resources addressed by v4 will contain sensitive information.

By sticking to v4, I'd have the same identifier for all resources across the API. When needed, I can expose the creation timestamp in the response separately. Audit is much simpler since the fields state explicitly what they will contain.

donjoe commented on Munich from a Hamburger's perspective   mertbulan.com/2025/06/14/... · Posted by u/toomuchtodo
mschuster91 · 6 months ago
Munich is an awesome city... for a tourist. It's clean, one of the safest cities of Germany (with the exception of the Central Station) and, with the exception of some "Asi-Viertels", well maintained (particularly compared to Berlin, Frankfurt or most of NRW), the attractions are awesome, and the beer is excellent.

For locals though? Speaking as one (who fled a year ago to nearby Landshut and still has to commute)... if you think about moving here, please don't:

- public transport is way too overcrowded, no matter what type of it, and forget about commute by car unless you are rich enough to pay someone to drive for you

- The rents are frankly insane, and fucking Bavarian wannabe-chieftain Söder keeps inviting one big company after another to Munich (instead of, say, Nuremberg for a change) while doing everything he can to avoid and hinder helping Munich alleviate the housing cost crisis.

- Munich's police are rabid if you're not white. Particularly the Central Station is not a good thing to "live while Black" (or dressed like a hippie or alternative), you'll get hounded by them because they can and will suspect you being a drug dealer, although the situation has relaxed a bit ever since cannabis got legalized federally a year ago.

- did I already mention the insane lack of housing? Seriously: prepare to either pay through your nose for short-term accomodation or couchsurfing, unless you are employed at one of the tech giants or rich enough to buy a place in cash you will likely spend a year or two until you have housing. If you are a student, that applies even more.

- a lot of Munich's infrastructure dates back to the money spigot times of the Olympic Games 1972 - and is subsequently shut down for repairs all the time because there hasn't been much invested in maintenance over the decades.

- Oktoberfest, Bauma (the construction trade fair) and the regular Champions League soccer games grind the entire city to a standstill. If you can help it, DO NOT move to any area close to the Theresienwiese (people WILL piss and even shit on your porch, I speak from personal experience) and to the Sechzger-Stadion in Giesing (in addition to the noise, 1860 fans are violent hothead hools that lead to massive disruptions for traffic every time that sorry excuse for a football club has a game).

donjoe · 6 months ago
... If you live close by Theresienwiese, the city provides free cleaning for any accidents during Oktoberfest in your front/backyard also. I have to smile everytime I do find the note containing an emergency accident cleanup number in my mailbox :-)
donjoe commented on Buttplug MCP   github.com/ConAcademy/but... · Posted by u/surrTurr
TeMPOraL · 7 months ago
So many ideas and industry terms get much more interesting when applied in this area.

Penetration testing (especially with red and blue teams). Agile. Continuous delivery. "Move fast and break things". Application firewall. Protection at rest. Injection attacks. Man in the middle. Load balancing. And so on.

There's one phrase I'm too fond of, that I thought of the other day:

Enterprise Teledildonics

Someone please make it become a thing.

donjoe · 7 months ago
Let's hope it's deepseek-compatible.
donjoe commented on Database mocks are not worth it   shayon.dev/post/2024/365/... · Posted by u/shayonj
fcmgr · a year ago
I've had good experience with testcontainers (https://testcontainers.com/) to do that sort of thing.
donjoe · a year ago
testcontainers is great. I struggled a bit with testcontainers due to the nature of one container per test which just felt too slow for writing gray/blackbox tests. The startup time for postgres was > 10 seconds. After a bit of experimenting, I am now quite happy with my configuration which allows me to have a snappy, almost instant testing experience.

My current setup:

- generate a new psql testcontainer _or_ reuse an existing one by using a fixed name for the container - connect to the psql container with no database selected - create a new database using a random database name - connect to the randomly generated database - initialize the project's tables - run a test - drop the database - keep the testcontainer up and running and reuse with next test

With this setup, most tests run sub-second;

donjoe commented on An Analysis of the Performance of WebSockets in Various Programming Languages (2021)   researchgate.net/publicat... · Posted by u/max0563
windlep · a year ago
I was under the impression that the underlying net/http library uses a new goroutine for every connection, so each websocket gets its own goroutine. Or is there somewhere else you were expecting goroutines in addition to the one per connection?
donjoe · a year ago
Which is perfectly fine. However, you will be able to process only a single message per connection at once.

What you would do in go is:

- either a new goroutine per message

- or installing a worker pool with a predefined goroutine size accepting messages for processing

donjoe commented on Data Fetching for Single-Page Apps   martinfowler.com/articles... · Posted by u/fagnerbrack
Rapzid · a year ago
Also useEffect callback is run after the component mounts. I often use memo when kicking off async processes on component mount.
donjoe · a year ago
UseMemo should not be used for fetching/kicking off a fetch either. UseMemo fans should be pure. Using logic that belongs into useEffect (logic that happens _outside_ the reactive flow) could potentially lead to other side effects which are very hard to debug. Just a example: a lot of fetch implementations are using fetch with a cache triggered in useMemo returning immediately. You will probably have a setState somewhere in the flow which will terribly interrupt react and break your page.

In case you trigger a native fetch, you've got no way to cancel the call due to the missing cleanup fn.

donjoe commented on 'The big problem is water': UK ebike owners plagued by failing motors   theguardian.com/lifeandst... · Posted by u/zeristor
tacticalturtle · 2 years ago
I never see them in the US outside of city bike share programs, but I feel like most casual bike users would be better served by internal gear hubs and similar closed systems. The maintenance is minimal, outside of dropping some oil in every year.

But for some reason, every bike in a bike shop, including the most casual upright bike, has a finicky derailleur.

So instead we’re doomed to a life of misaligned derailleurs and bent derailleur hangers.

donjoe · 2 years ago
Bikes are all about efficiency since you don't use any energy but your own. Things change a bit nowadays with e-bikes.

When it comes to efficiency, internal gear hubs sadly aren't yet in the range of a rear derailleur.

https://fahrradzukunft.de/17/wirkungsgradmessungen-an-nabens...

A dirty rear derailleur of course also reduces the drive train's efficiency by a lot - which can be solved by cleaning the chain every other month.

When moving towards belt drives, you need a very stiff frame which can be opened/split in the back to fit the belt. These frames are more expensive to produce which will furthermore increase the overall bike's price.

Ideally, we all train our legs to be able to handle a single speed setup ;-)

donjoe commented on Towards Modern Development of Cloud Applications (2023)   dl.acm.org/doi/10.1145/35... · Posted by u/signa11
progbits · 2 years ago
https://serviceweaver.dev/

Because it is a bit buried in the paper, this is the prototype implementation they talk about.

u/donjoe

KarmaCake day471June 1, 2017
About
meet.hn/city/de-Munich

Socials: - linkedin.com/in/korbinian-doepper - github.com/doejon

---

View Original