photonios

Joined 11 years ago

Karma
973
Submissions
299
Member since
Apr 10
swenkooij [@] gmail.com
View on Hacker News

Recent submissions

Comment · 2 months ago
Comment · 2 months ago
Exceptionally well written! I was instantly hooked.
Comment · 4 months ago
In what country do you live? I've had children in two European countries, in both it was common knowledge that natural birth is safer then cesarean and doctors/hospital strongly prefer it.
Comment · 1 year ago
I work remotely. I drive a 8y old BMW 2 series (manual). Ran 230k KM (142k miles). Has been very good to us. Bought it outright for €11k 4 years ago.

I'll probably drive it into the ground because I drive like a maniac. A new car is wasted on me.

Con: I pay my ass of in taxes because its a diesel. Pro: I imported it for free.

Comment · 1 year ago
> Except for thee Dodge RAM, which can be converted to a tax efficient company car (crazy)

You can no longer do that since 1st of Jan 2025. The BPM discount for company cars was removed.

Comment · 1 year ago
HN is almost perfect as it is. I really hope it does not change.

I love that it barely has any styling. Just enough to make it work. The fact that it doesn't use any design patterns is actually one of the reasons I visit HN.

The only thing I would change is the font sizes on mobile. I find it hard to tap the `Comments` link or the upvote buttons. I sometimes end up fat fingering those. Maybe a little bigger or a bit more padding?

Comment · 1 year ago
I love that this is funded by the French&German government. Go Europe! Wonderful to see. My only wish is that other EU governments (my own included) would invest even more into projects like this.
Comment · 2 years ago
In retrospect, I should've been more aggressive and risk taking with life decisions in my early teens and early twenties. Now with two small kids and a mortgage, I no longer have the flexibility to take massive risks.

All the risky moves that I made so far in life ended up being ok. Stressful, terrifying, but I always came out ok somehow.

Couple of examples:

- Moved to a lesser developed country at 19 to be with a girl.

- Bought two homes at the same time, was broke for a while.

- Moved back to my home country & bought a house in a crazy market.

- Joined a startup as the third employee.

Comment · 3 years ago
Everyone here arguing that most people have no practical use for higher speeds at home have never experienced 1 GBit up+down. Once you have it, you'll never settle for less.

I have 1 GBit up+down at home, I cabled the whole house with CAT7 cables and set up the best access points money can buy for mobile devices. Everything else is wired. It's an amazing experience and internet everywhere sucks compared to home.

When I lived in Romania this costed me €10, now that I am back in the Netherlands it's a bit more pricey at €52, but it's 100% worth it.

Comment · 3 years ago
Comment · 3 years ago
Comment · 3 years ago
We often experienced cascading failure, especially during rolling restarts. A node would start shutting down and Infinispan would start to try to rebalance. Due to the large volume of sessions, other nodes would start to become unresponsive and stop replying. Eventually, you'd end up in a situation where it would give give up trying to shut the node down cleanly and just kill itself. That wouldn't be a big deal if you weren't doing a rolling restart. When the first node doesn't shut down cleanly, the data should be "safe" since it is replicated to at least N owners. In practice, the other nodes also get restarted, also shut down uncleanly and sessions are lost. Secondly, as the cluster became unresponsive, requests to refresh sessions would start to time out, which would also cause those sessions to be "lost" since they would eventually hit the maximum idle time.

As long as we wouldn't do any restarts, it would sort of work. Problems would pop up when due to high load, one or more nodes would become unresponsive and liveness probes would restart nodes. That would often cause the kind of cascading failure described above.

Most of these problems are also the result of running it in Kubernetes. We very quickly learned to remove the liveness probes and to massively increase the grace period. This helped, but only so much. We still had rather frequent failures similar to the one I just described.

Maybe if we wouldn't have run it in Kubernetes and we would be more knowledgeable about Infinispan, we could've gotten a stable set up. For us, as a small team without that specialized knowledge, we struggled to get a stable set up.

Comment · 3 years ago
If there's anyone reading this that is planning on deploying Keycloak in a high availability environment, I would highly recommend that you persist all sessions in the database as offline sessions.

At work, I ran 9 Keycloak clusters in production, handling tens of millions of sessions where the cost of losing sessions was high. The amount of time we wasted on getting it to work reliably with its default configuration of storing the sessions in its distributed, in-memory cache (Infinispan) is insane. It just isn't designed to handle such a work load reliably. Unless you're willing to spent months tuning it for every possible scenario, you WILL lose sessions.

If you are in this situation, shoot me an email. I have been through this pain and it took a lot of painstaking work to get to a highly reliable set up at scale.

Comment · 4 years ago
Romania, Cluj-Napoca by Digi.

9€/month, 1 Gbit down, 450 Mbit up.

It's all fiber. You can't really get non-fiber around here. It's blazing fast and pretty stable. There are no real restrictions. They have a fair use policy, but I never heard of anyone being slapped on the wrist for using too much.

Comment · 4 years ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton