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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Stream Compression in NATS

35 点作者 SebastianM超过 1 年前

3 条评论

lakomen超过 1 年前
Honestly, I&#x27;m more interested in auth callout, someone making a &quot;how to use this stuff effectively&quot; video and&#x2F;or article, for dummies, ideally with keycloak.<p>If you look at [0] how does this explain anything? Seems like I need to write a service utilizing NATS which talks to the OIDC server.<p>NATS auth story is a complicated one, and now with auth callout it&#x27;s even more complicated.<p>What I also quite didn&#x27;t succeed in were JS client Jetstream consumers, async polling or w&#x2F;e. All the examples, async or sync would block execution.<p>The regular request&#x2F;response with microservices went well and straightforward. No issues at all. But writing middleware is also not very pretty, you have to have dedicated functions which you would call in the request handler (or microservice if you will) instead of being able to define a chain of middleware functions. Potejto potato but organization and structure and naming is half the code.<p>And more now you can&#x27;t rely on http error codes, even if you can use them.<p>Then debugging is difficult, because messages are sent in binary format, and with no middleware to conditionally plug in, it&#x27;s even more painful. Yeah you could write a dedicated service listening to &gt;.* and printing deserialized JSON payloads but that&#x27;s also extra work.<p>However dropping the HTTP overhead leads to a lot more throughput.<p>For now I&#x27;ll stay with HTTP.<p>The reason I experimented with it was there is a company which required NATS knowledge.<p>[0] <a href="https:&#x2F;&#x2F;docs.nats.io&#x2F;running-a-nats-service&#x2F;configuration&#x2F;securing_nats&#x2F;auth_callout" rel="nofollow noreferrer">https:&#x2F;&#x2F;docs.nats.io&#x2F;running-a-nats-service&#x2F;configuration&#x2F;se...</a>
评论 #37823165 未加载
评论 #37822021 未加载
alexfoo超过 1 年前
Didn&#x27;t know what NATS is, page doesn&#x27;t explain it.<p>Tried to click on the Docs link at the bottom of the page but that doesn&#x27;t work.<p>Stopped looking.
评论 #37819704 未加载
评论 #37819718 未加载
评论 #37819662 未加载
评论 #37820670 未加载
评论 #37822046 未加载
zinclozenge超过 1 年前
I was hoping the blog post would include a tentative roadmap for adding tiered storage.
评论 #37824481 未加载