TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Hutch: Inter-Service Communication with RabbitMQ

40 点作者 hcm超过 11 年前

2 条评论

whisk3rs超过 11 年前
I&#x27;ve built something similar as part of renovations to a large, legacy PHP code base.<p>We&#x27;re writing our consumers in Go using some impressively well written AMQP libraries (<a href="https://github.com/streadway/amqp" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;streadway&#x2F;amqp</a>) and some custom framework code. The framework code takes care of retries and acking, so the consumers are very simple (in: an envelope, out: fail&#x2F;done&#x2F;retry-later). Each worker runs as its own binary. I&#x27;m currently adding standardized variable exports for monitoring, and ephemeral queue-based reply capability.<p>On the PHP side, I found none of the PHP AMQP libraries to be worth using. They all have compilation problems or bugs or seem to be unmaintained. Instead, I&#x27;m using RabbitMQ&#x27;s STOMP plugin w&#x2F;default login and then wrote a simple TCP client in PHP using persistent connections. The client supports timeouts and multiple backends.<p>So far, this is working really well. Anybody doing their own RPC implementations using HTTP should take a look at using something like RabbitMQ. It solves a host of real-world problems and introduces much flexibility into your architecture.
评论 #6354414 未加载
评论 #6353904 未加载
jbarmash超过 11 年前
This looks analogous to Promiscuous from CrowdTap, also a framework for Rails &#x2F; RabbitMQ. Promiscuous takes a different approach in that it also allows you to go to an SOA architecture but by decomposing your app to run across multiple servers.<p>From the repo readme: &quot;Promiscuous is a publisher-subscriber framework for easily replicating data across your Ruby applications.&quot;<p><a href="https://github.com/crowdtap/promiscuous" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;crowdtap&#x2F;promiscuous</a>
评论 #6353561 未加载