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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Helidon Níma: A Java microservices framework based on virtual threads

92 点作者 philonoist超过 1 年前

10 条评论

pandemic_region超过 1 年前
I'm not really grokking the code sample on their frontpage. What is it doing? Explain it like I am a Java developer with 18 years of experience.
评论 #37192478 未加载
评论 #37192500 未加载
whartung超过 1 年前
Not being well versed in the capabilities of the virtual threads. However, both the Servlet and the JAX-RS models are &quot;thread agnostic&quot; in that while we &quot;know&quot; we&#x27;re running on a thread, the API doesn&#x27;t expose it directly.<p>So, if something like Tomcat &quot;simply&quot; switch its internal threading model from the current model to the virtual model, would the applications know any different? Could you drag and drop a JAX-RS service or a Java Servlet into a container running on virtual threads, or would rapidly run into some leaky wall?<p>Seems like a virtual thread model of Tomcat would be quite useful in some scenarios.
评论 #37196966 未加载
评论 #37195592 未加载
twic超过 1 年前
I am looking forwarding to trying Nima. The blocker for me is IntelliJ supporting Java 21, which i believe will be this winter [1]; i don&#x27;t absolutely need IntelliJ, but i am very lazy.<p>At the moment, my apps are using either the JDK HttpServer, which is easy to use, but of questionable robustness and lacking websocket support, or a Netty-based server, which works very well and supports websockets, but is often awkward to program against because it&#x27;s asynchronous. Nima should combine a nice simple synchronous API with a fairly luxurious feature set and good scalability.<p>Of course, it will turn out there are things terribly wrong with it, because this is real life. But for now i&#x27;m optimistic!<p>[1] <a href="https:&#x2F;&#x2F;intellij-support.jetbrains.com&#x2F;hc&#x2F;en-us&#x2F;community&#x2F;posts&#x2F;13049784815250-Planned-release-date-of-2023-3-with-Java-21-support" rel="nofollow noreferrer">https:&#x2F;&#x2F;intellij-support.jetbrains.com&#x2F;hc&#x2F;en-us&#x2F;community&#x2F;po...</a>
评论 #37192388 未加载
评论 #37195013 未加载
评论 #37193332 未加载
评论 #37197288 未加载
评论 #37192389 未加载
sgt超过 1 年前
This is a killer &quot;app&quot; for Java 21. There&#x27;s now little reason to choose Kotlin or some other language to build efficient API&#x27;s etc.
评论 #37195775 未加载
评论 #37192752 未加载
canvascritic超过 1 年前
Oooh this looks promising. Seeing helidon nima&#x27;s take on java microservices with virtual threads is certainly a different direction. Way way back, while working with a java microservices codebase, we were stuck with OJ (ObscuraJ, to be honest I&#x27;m not sure if it was publicly available or internal, was so many years ago) and that was pure hell. The configuration overhead, especially the cumbersome dynamic routing setup, and layers upon layers of indirection and dependency injection was a headache. níma&#x27;s approach piques my interest, albeit with a bit of caution, will need to dig into the source more
philonoist超过 1 年前
Elaborated here - <a href="https:&#x2F;&#x2F;medium.com&#x2F;helidon&#x2F;helidon-níma-helidon-on-virtual-threads-130bb2ea2088" rel="nofollow noreferrer">https:&#x2F;&#x2F;medium.com&#x2F;helidon&#x2F;helidon-níma-helidon-on-virtual-t...</a>
rubicon33超过 1 年前
I&#x27;ll take Scala + Akka over this. Underrated multithreading framework to say the least.
评论 #37193868 未加载
manicennui超过 1 年前
What problem does this solve?
评论 #37194636 未加载
xwowsersx超过 1 年前
I clicked on &quot;see the code&quot; and got: &quot;404 - page not found. The main branch of helidon does not contain the path nima.&quot;
评论 #37195068 未加载
评论 #37195505 未加载
logicchains超过 1 年前
Great project but the name is very unfortunate for Chinese speakers.
评论 #37192431 未加载
评论 #37192433 未加载