Spring Initializr,满足您对事件驱动微服务的完美匹配:PubSub +

Further thoughts on FPGA co-processing and performance

如果您不熟悉start.spring.io,它将托管Spring Engineering团队的自有版本的Spring Initializr,它使开发人员可以生成预填充了他们需要快速入门的依赖项的Spring Boot项目。

Spring Developer Advocate Josh Long称start.spring.io为“互联网第二好地方”它变得更好了! 我为什么这么说? 由于Solace PubSub +现在在start.spring.io上可用,因此使开发人员能够创建事件驱动的微服务。

Did you know that devs use Start.Spring to generate 15mil projects

作为一直使用Spring Framework和Solace PubSub +组合创建事件驱动的应用程序的开发人员大约八年了,我喜欢开发人员的经验如何不断提高。 这是下一步。

When selected as a dependency on Initializr at start.spring.io, the `Solace PubSub+’ option informs Initializr to add the Solace JMS Spring Boot Starter to the maven pom or build.gradle file as a dependency. This enables autoconfiguration of a ConnectionFactory or JndiTemplate, allowing developers to use Spring Boot to easily create event-driven microservices with PubSub+ and the JMS API. Using PubSub+ to create event-driven microservices empowers developers to use the best message exchange patterns for their use case, such as publish/subscribe, queuing, request/reply and it even provides the ability to store & replay. The use of PubSub+ also allows developers to take advantage of all the benefits of having events flow over the Event Mesh, such as being able to communicate with applications using other APIs and protocols and built-in high availability and disaster recovery.

Maven的例子:

<dependency> <groupId>com.solace.spring.boot</groupId> <artifactId>solace-jms-spring-boot-starter</artifactId> <version>3.2.0</version> </dependency>

想试一试吗? Spring Initializr提供了几种生成Spring Boot项目的方法。 您可以使用Web UI,从您最喜欢的IDE甚至从命令行中进行操作。

  • Web: Use this link to spring.io to use the Initializr Web UI, and yes it even offers a dark mode! You can choose your project type (Maven or Gradle), programming language, project dependencies and more. You’ll find the Solace PubSub+ dependency by looking under the “Messaging” section, searching for “solace” or if you use the link above, we’ve pre-populated the Solace PubSub+ dependency for you ;). Once you’ve made your choices, click the Generate button to download a zip file of your Spring Boot project.
  • IDE: You can also create Spring Boot projects from your favorite IDE. These IDEs currently support Initializr: Spring Tool Suite, IntelliJ IDEA Ultimate, NetBeans (with this plugin) or VSCode (with the vscode-spring-initializr plugin). Which Initializr do you think they use by default? If you guessed the one at start.spring.io, you’re correct. For example, when using the Spring Tool Suite IDE for development, you can create a new Spring Starter Project and under the covers Initializr will generate your project. Check out the options available in the image below. After choosing those initial options and selecting Next, you will be asked to choose dependencies. You’ll find Solace PubSub+ under the Messaging dropdown. Choose it, click Finish, and a Spring Boot project is generated right in your IDE.
  • CLI: Not a fan of a GUI? No worries, you can generate Spring Boot projects from the command line as well. For example, if you want to generate a zip file containing a project with Java 11 and Solace PubSub+ as a dependency, you could execute: curl https://start.spring.io/starter.zip -d dependencies=solace -d javaVersion=11 -o demo.zip Or to see all available options, execute curl -XGET https://start.spring.io as seen in the image below.

现在,您已经使用Spring Initializr将Solace的Spring Boot JMS Starter作为依赖项来生成Spring Boot项目,是时候编写事件驱动的微服务了。 您可以通过以下资源了解有关使用我们的Spring Boot JMS Starter的更多信息:

If you have any questions, feel free to ask them in the Solace Developer Community with the Spring tag.

And if you love start.spring.io so much that you want to learn more about how it works, watch Stéphane Nicoll’s talk from SpringOne Platform 2019: Creating “The Second Best Place on the Internet” with Spring Initializr

The Spring + Solace developer experience has come a long way in the last eight years and I’m excited to see it continuously improve. Check out solace.com/spring to see all the ways you can use Spring with Solace and stay tuned for more upcoming Spring + Solace news.

Hint: SolaceYSpring & SolaceYAsyncAPI. Until next time, Happy Eventing!

The post Spring Initializr, Meet Your Perfect Match for Event-Driven Microservices: PubSub+ appeared first on Solace.

from: https://dev.to//solacedevs/spring-initializr-meet-your-perfect-match-for-event-driven-microservices-pubsub-3kic

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值