15 Followers
96 Following
215 Posts

Creator https://zestui.com - UI Kit for Ruby on Rails using Tailwind & Phlex

Ruby on Rails Consultant

Sitehttps://manu-j.com

Here's the post I teased last week.

TL;DR; Average latency: -5%, p99 latency -10%

https://railsatscale.com/2024-10-23-next-generation-oob-gc/

Next Generation Out of Band Garbage Collection

In this post we look at the impact of a new feature of Ruby 3.4 on Shopify’s monolith.

Rails at Scale

I've just released json 2.7.3 with some bug fixes and lots of performance improvements: https://github.com/ruby/json/releases/tag/v2.7.3

This is my first release after being made maintainer two weeks ago.

If you got some realistic benchmarks in which JSON.dump is significantly slower than an alternative gem, please let me know.

As long as it's not the result of the alternative doing something incorrect, I'll consider it as a bug.

Release v2.7.3 · ruby/json

What's Changed Numerous performance optimizations in JSON.generate and JSON.dump (up to 2 times faster). Limit the size of ParserError exception messages, only include up to 32 bytes of the unpars...

GitHub

@baweaver @byroot If there are breaking changes often, shouldn't the focus be on fixing the root causes (tests/QA) than on operational excellence (logs/monitoring/metrics) after deployment?

Frequent breaking changes is due to lack of rigour. No amount of operational excellence is going to fix that.

@baweaver @byroot

1. How is the pain any less if you deploy less often?
2. How can you be irresponsible with CD?

Yes, I love SQLite on Rails as an application architecture. And yes, I truly believe that you should try it for your next project.

But, it isn't a silver bullet and it isn't the right fit for everyone. Plus, even if it is a good fit, there are considerations to be aware of.

Cloudflare R2 · Cloudflare R2 docs

Cloudflare R2 Storage allows developers to store large amounts of unstructured data without the costly egress bandwidth fees associated with typical …

@kaspth Ok. Quickstart will make it clear
@kaspth Ok. since seeds is not loaded by tests in Rails by default, I had assumed
Oaken.prepare will only kick in if i run `db:seed` I think it is better to have `db/oaken.rb` and plug into `db:seed` task. One step further would be `db/oaken/seeds.rb` and `db/oaken/seeds/`

@kaspth 3. End to end means, both setup and usage together, like a quick start.

```
# seeds/accounts
donuts = accounts.create :kaspers_donuts, name: "Kasper's Donuts"
```

```
# testcase showing
accounts.kaspers_donuts
```
It's easy to miss the importance of that symbol ` :kaspers_donuts`

@kaspth 3. `users.create :kasper ...` There should be a simple end to end example with just one record. At first glance, I missed the fact this is not plain AR create. The symbol is important as that is used for referencing.

4. Since there can be multiple seeds files with flexibility to create any record, how are symbol clashes handled?