Re:Rage: Fast web framework compatible with Rails
by chitinbottler0a on Tuesday December 12, 2023 @07:07AM
(#38611146)
> Should the calling code wrap the database calls with `Fiber.await { Fiber.schedule { ... } }`?
Nope. Scheduling works seamlessly, thanks to Ruby core.
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)