News for hackers. Stuff that matters.
Re:Running GitHub on Rails 6.0 by ljm on Monday September 09, 2019 @06:19PM (#20923103)
Rails gets background processing emphatically wrong.

Rails does a lot of things right, but ActiveJob and everything built upon it (including the abuse of Redis) is a travesty.

The entire concept of serialising code and re-evaluating it (which is what these libraries do) is a joke.

Your job payload should be pure data but Rails ensures that it is code.

And you should builds the workers that consume it.

Re:Running GitHub on Rails 6.0 by dymk on Monday September 09, 2019 @07:02PM (#20923449)
Job payloads are certainly not code; they're exposed to the developer as basically blobs of JSON, and the code lives in a "job handler" which is certainly itself not serialized.
Re:Running GitHub on Rails 6.0 by gwright on Monday September 09, 2019 @07:15PM (#20923553)
> Your job payload should be pure data but Rails ensures that it is code.

Doesn't sound right to me. ActiveJob just serializes the arguments to the job. The job runners spins up the rails environment (i.e. the code) and deserialize the arguments before executing the job.

There is no code serialization as far as I can tell.

Re:Running GitHub on Rails 6.0 by steveklabnik on Monday September 09, 2019 @06:20PM (#20923117)
This comment would be much better if you explained why you think so, even at a high level.