Samuel Williams

478 Followers
55 Following
582 Posts
"A candle loses nothing by lighting another"
Websitehttps://www.codeotaku.com
Githubhttps://github.com/ioquatix
LocationNew Zealand
Leveraging Falcon and Rails for Real-Time Interactivity

Great performance talk suggested by @ioquatix in Ruby core chat https://m.youtube.com/watch?v=r-TLSBdHe1A
"Performance Matters" by Emery Berger

YouTube

A concurrency "mini" in my Ruby concurrency series.

It highlights how to maintain safe, request-local state using the Fiber storage API.

This is particularly useful for Fiber-based servers like Falcon. Thanks
@ioquatix
for the suggestion, and review!

https://jpcamara.com/2024/06/27/consistent-requestlocal-state.html

Consistent, request-local state

👋🏼 This is a series on concurrency, parallelism and asynchronous programming in Ruby. It’s a deep dive, so it’s divided into 10 main parts: Your Ruby programs are always multi-threaded: Part 1 Your Ruby programs are always multi-threaded: Part 2 Consistent, request-local state Ruby methods are colorless Concurrent, colorless Ruby: Part 1, Threads Concurrent, colorless Ruby: Part 2, Fiber and its MaNy friends Parallel Ruby: Processes, Ractors and alternative runtimes Streaming Ruby: Scaling concurrency Abstracted, concurrent Ruby Closing thoughts, kicking the tires and tangents How I dive into CRuby concurrency You’re reading “Consistent, request-local state”.

@eljojo I have not. But I have used @ioquatix's async and that worked just nicely. Just the right amount of abstraction.

https://rubygems.org/gems/async

async | RubyGems.org | your community gem host

falcon-rails-example/app/controllers/chat_controller.rb at 51536cab600017eadcf64f9733259058fa8828c9 · socketry/falcon-rails-example

Contribute to socketry/falcon-rails-example development by creating an account on GitHub.

GitHub
I wrote some details about how to host a Rails 7.1 application in Falcon: https://github.com/socketry/falcon-rails-example - I'll add some more application level examples, including WebSockets and streaming soon.
GitHub - socketry/falcon-rails-example

Contribute to socketry/falcon-rails-example development by creating an account on GitHub.

GitHub

TBH, I've personally never really liked or trusted the current health minister. Even before today's covid decision.

Something about her set off the same gut reaction warning flags that I get when examining systems that eventually turn out to have a bunch of bad defects...

(Turns out this same sense has so far also held quite well when reviewing job applicant CV's by and large...)

My apple cider has clarified nicely.
Okay, I think this makes more sense:
Welcome @godfat