Use db connection (Redis, Postgresql, etc.) inside Ractors

Has anyone used a db connection inside Ractors? The connection pool is always a shared object so I have no idea how to deal with it.

See this article for example:

They use Redis only outside Ractors to fetch the jobs… however this is not enough in a real application. Each background job usually have to interact directly with the database (Redis, Postgresql, etc.) and I don’t see any solution for this.