eardata / hutch-java Goto Github PK
View Code? Open in Web Editor NEWhutch for java
hutch for java
类似以下 hutch 的使用:
Hutch::Config.error_handlers << Hutch::ErrorHandlers::MaxRetry.new
Hutch::Config.error_handlers << Hutch::ErrorHandlers::Honeybadger.new
使用 Hutch 的时候, 默认只向一个 rabbitmq 实例推送消息. 但有时候系统对接了多个不同 virtual host 或者连接多个不同的 rabbitmq 实例, 需要考虑如何支持进行不同 rabbitmq 实例进行消息的 publish
以此来支持 RabbitMQ mock(com.github.fridujo:rabbitmq-mock:1.1.1)
rescue_from Excon::Error::Forbidden, # 拒绝访问
Excon::Error::Unauthorized, # 认证失败
Peddler::Errors::AccessDenied, # 拒接访问
Peddler::Errors::InvalidAccessKeyId, # 无效的 Developer Account AccessKeyId
Peddler::Errors::SignatureDoesNotMatch, # 签名验证失败
with: :recover_channel_handler
业务场景会遇到有 rate limit 的 api 调用, 当然可以直接交给外部的 rate limit 去处理. 但这样在与 mq 之间沟通的时候, 会浪费大量的计算资源在做重复的事情. 可以将任务分成两种进行考虑:
使用的时候, 无法第一时间从 console 中查看到到底是连接的哪一个 rabbitmq 实例, virtual host 是什么? Hutch.name 是什么
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.