Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

This is great. I had been long looking for something like this in Ruby eco-system. I worked on a Rails app which interacted with a bunch of micro-services and I missed the async-await so much. The problem was, when the app was waiting on API requests, the throughput suffered a lot.

We couldn't increase the number of threads a lot, since it increased the memory usage a lot which eventually led to OOMs.

I tried to put something together using async-http [0], but it was not very stable.

One question would be, how does scheduling work with existing psql and myself db gems. Should the calling code wrap the database calls with `Fiber.await { Fiber.schedule { ... } }`?

A framework like this would be very useful when the tech-world is moving towards micro-services, for the good or bad. [0](https://github.com/socketry/async-http)



> Should the calling code wrap the database calls with `Fiber.await { Fiber.schedule { ... } }`?

Nope. Scheduling works seamlessly, thanks to Ruby core.




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

Search: