HackerTrans
TopNewTrendsCommentsPastAskShowJobs

micvbang

no profile record

Submissions

Text inputs are weird [video]

youtube.com
1 points·by micvbang·il y a 9 mois·0 comments

Ask HN: How to get portfolio exposure to RISC-V?

4 points·by micvbang·il y a 12 mois·1 comments

Tools I love: mise(-en-place)

blog.vbang.dk
176 points·by micvbang·l’année dernière·50 comments

On A Great Discussion

blog.vbang.dk
2 points·by micvbang·l’année dernière·0 comments

AI exploits a gamebreaking bug in Trackmania [video]

youtube.com
3 points·by micvbang·l’année dernière·0 comments

Simple event broker: data serialization is expensive

blog.vbang.dk
2 points·by micvbang·il y a 2 ans·0 comments

Simple event broker tries Tiger Style

blog.vbang.dk
4 points·by micvbang·il y a 2 ans·0 comments

Driplang: Triggering when events happen (or don't)

blog.vbang.dk
2 points·by micvbang·il y a 2 ans·0 comments

Data Exploration Using Vim

blog.vbang.dk
4 points·by micvbang·il y a 2 ans·1 comments

comments

micvbang
·l’année dernière·discuss
Thanks a lot for telling me!
micvbang
·l’année dernière·discuss
Yep! And direnv on top of that :)
micvbang
·l’année dernière·discuss
I got tired of the pricing and/or complexity of running message queues/event brokers, so decided to play around with implementing my own. It utilizes S3 as the source of truth, which makes it orders of magnitude easier to manage and cheaper to run. There's an ongoing blog series on the implementation: https://github.com/micvbang/simple-event-broker
micvbang
·l’année dernière·discuss
Surely You're Joking, Mr. Feynman! by Richard Feynman
micvbang
·il y a 2 ans·discuss
I've had many use cases for using an event broker, but never found one that was simple enough that I would venture into hosting it myself, or cheap enough to rent/host that it was feasible. Once I realized that cloud object stores fit this problem perfectly (they provide durability and are cheap to use), I realized that it would be possible to write one myself. I wrote a post on it here, along with a tiny performance evaluation: https://blog.vbang.dk/2024/05/26/seb/

I spent the better part of a week working on it full time, but spread over months. I use it daily - it's serving the needs of multiple projects that I needed it for :)
micvbang
·il y a 2 ans·discuss
I've been on teams where we've done this (very successfully in my opinion!) by creating helper code that automates creating a separate Postgres schema for each test, running all migrations, then running your test function before tearing it all down again. This all runs on CI/CD and developer machines, no credentials to any actual environments.

A major benefit of doing separate schemas for each test is that you can run them in parallel. In my experience, unless you have a metric ton of migrations to run for each test, the fact that your database tests can now run in parallel makes up (by a lot!) for the time you have to spend running the migrations for each test.

EDIT: usually we also make utilities to generate entities with random values, so that it's easy to make a test that e.g. tests that when you search for 5 entities among a set of 50, you only get the 5 that you know happen to match the search criteria.
micvbang
·il y a 2 ans·discuss
Hadn't heard of this - it looks very interesting. Thanks for the reference!
micvbang
·il y a 2 ans·discuss
Cool - thanks for explaining!
micvbang
·il y a 2 ans·discuss
Yeah, it's currently a one-process-army so consensus isn't a problem :D

With the current implementation you /could/ run multiple readers at the same time; the only state there is, is files in S3. But it's a feature that just kinda happens to fall out of the current implementation, and not something it was designed for :)
micvbang
·il y a 2 ans·discuss
Thanks, great question!

My strategy was to start out by implementing the underlying storage primitives first, and then look into which transport to implement later. The transport of course can have a large impact on the required storage primitives, but in my case I built it the other way around since I knew what primitives I would need in my applications.

I've been playing with the thought of implementing (parts of) the Kafka API, but I honestly haven't considered the transport that much yet :)
micvbang
·il y a 2 ans·discuss
OP here. I hadn't seen this before, but I'll definitely give it a look. Thanks!
micvbang
·il y a 2 ans·discuss
Hehe, I'm very sorry, but there must be some kind of cultural barrier here. My smiley was intended as a way to intentionally show OP that I wasn't trying to be mean or anything, but sincerely asking the question :)

Anyway, it's my post. I just pulled down a Jekyll theme that I thought looked nice and tried it on my laptop and phone (where it worked fine). But thanks, I'll try to look into how and why it's broken.

Thanks!
micvbang
·il y a 2 ans·discuss
Thanks @eatonphil for posting this! OP here: I'd love to (try to) answer any questions you might have :)
micvbang
·il y a 2 ans·discuss
What isn't working for you? :)