This post shows how your application servers (Rails, Django, Laravel, etc.) can offload file delivery to reverse proxy servers like Nginx using the X-Accel-Redirect (or X-Sendfile) header. We'll also read a new reverse proxy's (Thruster) source code in Go to learn how this pattern is implemented at the proxy level.
Agreed, this should be the main link instead of giving AppSignal free publicity. The original is very much a light reworking of the original. It has the same content order and everything.
Fixed, good catch, thanks! I started my research using other people's spreadsheets rather than checking every vendor's pricing. Must have had old data.
Author of the original post here. I have no affiliation with either the Flatiron bootcamp, nor the SuperByte company. But I know Pedro and he (and his story) is real.
If you take a quick look at the rest of my blog, you'll quickly know that this was neither an ad for any bootcamp or company, nor an attempt to 'manipulate tech news readers'.
2024: the year where you write a touching piece about someone successfully implementing a late in life career change and the top comment accuses you of being a spammer. Only way it could be better is if he said it was all generated by ChatGPT.
Ruby's defined? keyword is an elegant way to check if a variable is defined or not and also to cache expensive operations. However, it's confusing, and a few gotchas await the new Rubyist.
In this post, we'll learn how it works and how to use it correctly to cache expensive operations returning `nil` or `false`.
In this article, we'll build a simple but complete application in plain Ruby without Rails, to get a deeper understanding and appreciation of everything Rails does for us.
Rails 7.1 ships with a handy `perform_all_later` method that lets you enqueue multiple jobs to be executed at once, reducing the round-trip to the job backend like Redis or the database.
Although it's currently supported only by Sidekiq and GoodJob (as far as I know), it provides a nice abstraction to enqueue multiple jobs at once. This post explores this method including the behind-the-scenes implementation.