Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Database-as-IPC

From Wikipedia, the free encyclopedia
Misusing databases for temporary messages
icon
This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Database-as-IPC" – news ·newspapers ·books ·scholar ·JSTOR
(September 2011) (Learn how and when to remove this message)

Incomputer programming,Database-as-IPC may be considered ananti-pattern where a disk persisted table in a database is used as the message queue store for routineinter-process communication (IPC) or subscribed data processing. If database performance is of concern, alternatives includesockets,network socket, ormessage queue.

Britishcomputer scientist, Junade Ali, defined the Database-as-IPC Anti-Pattern as using a database to "schedule jobs or queue up tasks to be completed", noting that this anti-pattern centres around using a database for temporary messages instead of persistent data.[1]

Controversy

[edit]

The issue arises if there is a performance issue, and if additional systems (and servers) can be justified. In terms of performance, recent advancements in database systems provide more efficient mechanisms for signaling and messaging, and database systems also support memory (non-persisted) tables.

There are databases with built-in notification mechanisms, such as PostgreSQL,[2][3] SQL Server,[4] and Oracle.[5] These mechanisms and future improvements of database systems can make queuing much more efficient and avoid the need to set up a separate signaling or messaging queue system along with the server and management overhead.

While MySQL doesn't have direct support for notifications,[6] some workarounds are possible. However, they would be seen as non-standard and therefore more difficult to maintain.[7]

See also

[edit]

References

[edit]
  1. ^Ali, Junade (September 2016).Mastering PHP Design Patterns. Birmingham, England: Packt Publishing Limited. pp. 45–46.ISBN 978-1-78588-713-0. Archived fromthe original on 1 June 2020. Retrieved11 December 2017.
  2. ^[1] Postgresql.org 2020 September 09
  3. ^[2] Postgresql.org 2020 September 09
  4. ^[3] Nic Ferrier. 2018 Aug 15
  5. ^[4] docs.oracle.com. 2020 September 09
  6. ^[5] MariaDB Jira. 2020 September 09
  7. ^5 subtle ways you’re using MySQL as a queue, and why it’ll bite youArchived 2018-06-12 at theWayback Machine Schwartz, Baron. 2011 September 14.


Stub icon

Thiscomputer science article is astub. You can help Wikipedia byexpanding it.

Retrieved from "https://en.wikipedia.org/w/index.php?title=Database-as-IPC&oldid=1309136413"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp