Creating a UDP server with Ruby Ractors

Ruby (MRI) has a Global VM lock. This means that you cannot execute code in multiple threads at the same time. You can achieve a lot of great things with Threads, especially if you have a lot of I/O, but parallel execution in Threads does not exist in Ruby.Ruby 3.0 introduces Ractors, a concept that lets you create true parallel execution with messages flowing between Ractors instead of shared objects. You can think of a Ractor as an independent worker that you can call up and ask to do a task for you while you do something else.This feature is experimental in Ruby 3.0 and might have changes in the future. All examples here are with Ruby 3.0.
Creating a UDP server with Ruby Ractors #ruby #rubydeveloper #rubyonrails #server https://rubyonrails.ba/single/creating-a-udp-server-with-ruby-ractors

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles