Real-Time Communication: Implementing Websockets With Spring Boot

Thomas Kendall Java, JavaScript, Spring Boot, Technology Snapshot 1 Comment

When developing web applications, we sometimes need to push server events down to connected clients. However, HTTP was not designed to allow this. To get around this limitation, a polling pattern was established where web pages would intermittently poll the server for any new events. This pattern was not ideal as it added HTTP overhead, was only as fast as the polling rate, and caused unnecessary load on the server.

Luckily, with the emergence of HTML5 came the WebSocket. The WebSocket protocol enables interaction between a browser and a web server with lower overheads. In this blog we’ll introduce the Websockets API and show how to implement Websockets with Spring Boot.

Auto-Publishing & Monitoring APIs With Spring Boot

David Pitt Keyhole Creations, Microservices, Spring Boot, Technology Snapshot, Tutorial Leave a Comment

If you are heading down the path of a Microservices style of architecture, one tenant you will need to embrace is automation. Many moving parts are introduced with this style of architecture. If successful, your environment will have a plethora of service APIs available that the enterprise can consume for application development and integration.

This means that there must be a way that available API documentation can be discovered. API information needs to be effectively communicated throughout the enterprise that shows where APIs are used, how often APIs are used, and when APIs change. Not having this type of monitoring in place will hinder and possibly cripple the agility benefits that a Microservice style of architecture can bring to the enterprise.

This blog will describe how Swagger/OpenAPI documentation can be applied to a Spring Boot implementation. We will show how API documentation and monitoring can be automatically published to an API documentation portal.

As an example, we introduce a reference Spring Boot API CRUD application (using Spring MVC/Data with Spring Fox) and set up the automatic publishing of API documentation and statistics to documentation portal GrokOla. In the example, we introduce two open source utilities to help and allow published APIs the ability to be searched and notify users when changed….

Spring Boot – The Right Boot For You!

Matt McCandless Java, Spring, Spring Boot, Technology Snapshot, Tutorial 1 Comment

Need a little spring in your step? Tired of all those heavy web servers and deploying WAR files? Well you’re in luck.

Spring Boot takes an opinionated view of building production-ready Spring applications. Spring Boot favors convention over configuration and is designed to get you up and running as quickly as possible.

The aim of this blog is just to get you familiar with how to get Spring Boot going on your machine. It is going to be fairly straightforward and vanilla. The goal is to get you started…

Keyhole Labs Releases Spring Boot Starter For Trouble Maker

Lauren Fournier Company News, Java, Spring, Spring Boot Leave a Comment

The Keyhole Labs team is excited to announce the release of a Spring Boot starter for auto-configuration of Trouble Maker.

This new auto-configuration allows Spring Boot applications to easily enable Trouble Maker. Trouble Maker randomly takes down services during normal business hours in an effort to test stability and automated recovery. It also provides an ad hoc console to test application durability on demand.

See more on the Keyhole Labs blog.

Getting Started With JHipster, Part 3

Matt McCandless Angular, Java, JavaScript, Spring, Spring Boot, Tutorial 1 Comment

Welcome back to this JHipster tutorial series! In part one we covered creating a monolithic application. In part two, we walked through creating a microservice application (which was a bit more complicated).

For those of you out there working to get things going with JHipster, there are some setup things and “gotchas” that I’d like to highlight. So this little blog is more of a helper for those of you who have decided to try JHipster out and play around with it. That’s what we’ll be discussing in this blog post with the hope that I can help you minimize the getting-up-to-speed curve…