84 Followers
99 Following
87 Posts

Principal software engineer @Wealthbox.
Husband/Father. Health, travel, tech and Ruby enthusiast.

Tech blog at https://jpcamara.com

Jokes at https://logicalconclusionscomic.com

Bloghttps://jpcamara.com
Comichttps://logicalconclusionscomic.com

TIL if you want to return the duration in seconds, returning it as an Integer is a _hard_ requirement

There is a _specific_ check that the class is Integer. If you accidentally return a float, Sidekiq ignores it and reverts to its built-in delay policy. Be careful!

In Sidekiq, you can add a special method to your job class called `sidekiq_retry_in`. This method allows you to dynamically adjust retry behavior. For instance, based on the exception raised you can return a different duration in seconds. /1
Did an early draft run of my real-time collaboration talk at the #bostonrb meetup. Getting amped for #SFRuby conf! See you there? sfruby.com

@bensheldon I am finishing out a batch implementation for SolidQueue, and one thing i've realized is that enqueue_after_transaction_commit throws a wrench in a fluent interface for batches. Ie, being able to just call `perform_later` on a job inside of a batch #enqueue block.

My implementations interface is inspired by a mixture of GoodJob and Sidekiq batches - I looked at GoodJobs internals around enqueue_after_transaction... and have been testing it out - it looks like they're incompatible?

Irregular Expressions

A comic that takes things to their logical conclusion.

2024 ended up a pretty solid writing year for me. Here are the top 10 posts by views. Of them, 8 were written in 2024 (tanstack and pgbouncer have had alot of staying power, they're from 2023). I'll link to each after this, in case you'd like to check them out!
I started publishing a tech web comic, slowly, since early fall. Here's the latest, I'm pretty happy with it! 🐍🐍
https://logicalconclusionscomic.com/2024/12/12/python-nom-nom.html
Python Nom Nom

A comic that takes things to their logical conclusion.

@deadcode ⭐️
When a one line change improves performance from 30 seconds to 100ms 😄 https://github.com/TanStack/table/pull/4495
[v8] Improve grouping performance on large clusters of values by jpcamara · Pull Request #4495 · TanStack/table

I maintain an application which renders a virtualized react-table table with up to 50k rows, 50 columns and up to 3 grouped columns. We were noticing huge performance problems with grouping and tra...

GitHub