簡單消息隊列系統 ElasticMQ
ElasticMQ 是一個使用 Scala 編寫的簡單消息隊列系統。當前使用嵌入式數據庫 H2 來存儲消息。ElasticMQ 實現了 SQS REST 接口的子集,提供一個 SQS 的可選方案。
ElasticMQ 使用 Squeryl 來訪問數據庫。
示例代碼:
// First we need to create a Node val node = NodeBuilder.createNode // Then we can expose the native client using the SQS REST interface val server = SQSRestServerFactory.start(node.nativeClient, 8888, "http://localhost:8888") // ... use ... // Finally we need to stop the server and the node server.stop() node.shutdown()
本文由用戶 fmms 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!