News for hackers. Stuff that matters.

griffinmyers

Re:Your back end should probably be a state machine on Thursday September 21, 2023 @11:11AM (#37598823)
We're still waiting for our "react" moment on the backend; a fundamental shift in the abstractions we treat as the bedrock of our applications.

I think the author does a good job here showing why the state machine might just be that abstraction.

These look super useful -- a great example of two powerful paradigms that together are greater than the sum of their parts.

Show HN: Wirepig – Mock HTTP and TCP deps with real sockets in Node.js tests

https://github.com/griffinmyers/wirepig

Wirepig lets you stand up mock HTTP and TCP servers for your dependencies, all from within your testing process.That means even in tests your application sends real requests over localhost, but without giving up the nice ergonomics of programmatically controlled mocks.Let me know if you have any comments or suggestions!

( Read More... | no comments | on HN )
This was a doozy.
Re:AWS NLBs and the mixed up TCP connections on Thursday October 22, 2020 @03:38PM (#24862467)
I hit this issue a year ago, in a slightly different setup. We were trying to expose an internal ECS Service to other services via an NLB. Things worked great, as long as the sending and receiving services didn't end up on the same EC2 instance. Unfortunately this occurred fairly often, since the ECS scheduler wasn't aware of that bizarre constraint (maybe we could have made it aware, but, that seems like a pretty brittle way to fix things).

Our resolution was to just fall back to an ELB. A bummer in that it didn't support dynamic port registration (the service could only be on a single EC2 instance at a time, since it has a static port), but joyful in that we didn't have spurious failures as an artifact of task packing.

Re:Hum to Search Song on Thursday October 15, 2020 @09:54PM (#24796608)
It's a wonderful tune -- I was an instant fan hearing it in the movie Inherent Vice.