timgit / pg-boss

Queueing jobs in Postgres from Node.js like a boss
MIT License
2.15k stars 160 forks source link

Use pg-boss with postgres.js #420

Closed StarpTech closed 3 months ago

StarpTech commented 1 year 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 1 year 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 1 year 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 1 year ago

How does the dependency on pg affect your usage?

StarpTech commented 1 year 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 8 months ago

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