Job queue as SQL table with multiple consumers (PostgreSQL)

后端 未结 7 853
醉梦人生
醉梦人生 2020-12-04 09:34

I have a typical producer-consumer problem:

Multiple producer applications write job requests to a job-table on a PostgreSQL database.

The job requests have

7条回答
  •  时光说笑
    2020-12-04 10:29

    Read my post here:

    Consistency in postgresql with locking and select for update

    If you use transaction and LOCK TABLE you will have no problems.

提交回复
热议问题