Hacker News .hnnew | past | comments | ask | show | jobs | submit | ecoffey's commentslogin

Interesting! Reading the headline before the article, my brain immediately thought of "jitter".

I wonder if you could extend the `In-process synchronization` example so that when `CompleteableFuture.supplyAsync()` thunk first does a random sleep (where the sleep time is bounded by an informed value based on the expensive query execution time), then it checks the cache again, and only if the cache is still empty does it proceed with the rest of the example code.

That way you (stochastically) get some of the benefits of distributed locking w/o actually having to do distributed locking.

Of course that only works if you are ok adding in a bit of extra latency (which should be ok; you're already on the non-hot path), and that there still may be more than 1 query issued to fill the cache.


Northguard doesn’t look like it’s been open sourced? I’d be curious to know how it compares to Apache Pulsar [0]. I feel like I see some similarities reading the LI blog post.

0: https://pulsar.apache.org/


That is tough, I’m sorry for your loss.


Thank you for the condolences.


In my experience microservices are easier to manage and understand when organized in a monorepo.


That indicates a strong coupling between those microservices.


Even loose coupling is still coupling. For the things that have to be coupled having the code organized in the same place, being able to easily read the source for “the other side”, make a change and verify that dependees test still pass, etc is immensely powerful.


I like using the term “distributed monolith” for those systems with very tightly coupled microservices.


Monorepo is one of few things I’ve drunk the koolaid on. I joke that the only thing worse than being in a monorepo, is not being in one.


Thanks, I'll steal that one! :-)


Bartosz links to it in the Further Reading section, but wanted to highlight the Wristwatch Revival YouTube channel[0] as well. Really great content and very understandable after reading the article!

0: https://www.youtube.com/c/WristwatchRevival/videos


Love this channel, perfect ASMR for nerds. Marshall is of course also one of the foremost Magic: the Gathering podcasters and commentators.


> perfect ASMR for nerds.

Haha yeah I like to have this on it the background when I’m doing other things.



> LSP optimizes writing the code.

I would actually phrase that as “LSP optimizes for understanding” (which is of course important for writing code).

For example, when doing code reviews I routinely pull the branch down and look at the diff in context of the rest of the code: “this function changed, who calls it?”, “what other tests are in this file?”, etc. An IDE/LSP is a powerful tool for understanding what is happening in a codebase regardless of author.


Makes me think of this project: https://www.vesta.earth/


Trying to see from specs and such if the mesh supports ethernet backhaul vs wifi radio like the google wifi does.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: