请输入您要查询的百科知识:

 

词条 Database-as-IPC
释义

  1. References

{{Refimprove|date=September 2011}}

In computer programming, Database-as-IPC is an anti-pattern where a database is used as the message queue for routine interprocess communication in a situation where a lightweight IPC mechanism such as sockets would be more suitable. British computer 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]

Using a database for this kind of message passing is extremely inefficient compared to other IPC methods and often introduces serious long-term maintenance issues, but this method enjoys a measure of popularity because the database operations are more widely understood than "proper" IPC mechanisms.[2]

References

1. ^{{cite book|last1=Ali|first1=Junade|title=Mastering PHP Design Patterns|date=September 2016|publisher=Packt Publishing Limited|location=Birmingham, England|isbn=978-1-78588-713-0|pages=45-46|url=https://www.packtpub.com/application-development/mastering-php-design-patterns|accessdate=11 December 2017}}
2. ^[https://www.engineyard.com/blog/5-subtle-ways-youre-using-mysql-as-a-queue-and-why-itll-bite-you 5 subtle ways you’re using MySQL as a queue, and why it’ll bite you] Schwartz, Baron. 2011 September 14.
{{compsci-stub}}

2 : Anti-patterns|Databases

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/20 15:37:57