timgit / pg-boss

Queueing jobs in Node.js using PostgreSQL like a boss
MIT License
1.73k stars 144 forks source link

Use pg-boss with postgres.js #420

Open StarpTech opened 10 months ago

StarpTech commented 10 months ago

Hello, it would be great if pg-boss could support porsager/postgres because it is very popular. I tried to make it work but I gave up after an hour. Any help is appreciated.

timgit commented 10 months ago

You can pass in porsager's project via the db option in the constructor if you want. In terms of popularity, one of these is not like the other: image

StarpTech commented 10 months ago

It's not only about popularity although 60k a month is definitely worth supporting. We use postgres. For us, it would be great to deal with one library instead of two. I tried implementing db interface but wasn't able to make it.

timgit commented 10 months ago

How does the dependency on pg affect your usage?

StarpTech commented 10 months ago

Not directly, but if I could only use postgres.js I'd have a single way to configure TLS and pool management. Postgres drivers are complex. One thing less to worry about.

StepanMynarik commented 3 months ago

@StarpTech @timgit Same situation here. Also porsager authors claim their driver has top performance by far.