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

> What if I have multiple Ruby APIs to hit?

Then hit them with multiple concurrent threads and move on.



... do you think available memory and CPU time do not decrease when you spawn more threads?


Use threads. They exist. Use em'. Know what threads are really good at? Hiding IO time. They're like REALLY good at it. When a thread is blocked on IO, it's not spinning your CPU. So is the thread "free"? No. Is it pretty cheap compared to re-writing an app in another lang? Yes.


And if I need to hit them in serial?




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: