

如何大量请求发送短信接口?
source link: https://www.v2ex.com/t/839332
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

客户提供的短信接口没有批量发送短信的接口..目前是在循环里去直接 http 请求(根据返回状态判断短信是否发送成功).这样做肯定不行的.目前项目还未上线..所以还没有想到一个比较好的解决办法...使用 CompletableFuture 虽然不会阻塞...但是对面的 api 肯定会防止刷 api 限流...有老哥解决过类似需求吗?
giiiiiithub 1 天前
另外 CompletableFuture 提供的只是异步接口,但是 io 会不会阻塞主要看用的是 bio 还是 nio 还是 aio
ali727 1 天前
RedBeanIce 1 天前
根据现在的情况,你只能开启多线程去调用然后 get 阻塞???这样子好难
应该他们回调你们接口,会好一点,,,这样子阻塞太难了,,建议他们改接口,他们的错误,我们不背锅
sampeng 22 小时 34 分钟前
Jekins 22 小时 6 分钟前
q1angch0u 20 小时 35 分钟前 via iPhone
ps: #19 说了半天是在说明“限流”相关的问题,您这#21 为啥全程在解释为啥不能用阿里云…?
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK