Collecting application metrics with Istio

In my earlier tutorials, I’ve explained how you can set up your own Prometheus and Grafana containers with Docker, and how you can configure them for Spring boot and nginx. A nice feature of Istio, is that it comes with Prometheus and Grafana out of the box. Additionally, they’re already set up to collect certain metrics.

In this tutorial, we’ll integrate our own application metrics with the existing services that are available with Istio.

Continue reading “Collecting application metrics with Istio”

Reactive streams over the network with RSocket

RSocket is a protocol that allows you to reactively stream data over the network. One of the benefits of RSocket is that the header of the frame itself is being sent in binary. This reduces the overal network payload and decreases network latency.

Not only does RSocket cover the specification of the protocol itself, but it also provides several implementations. Currently, there are implementations for Java, JavaScript, Go, Kotlin and more. In this tutorial I’ll demonstrate how to use RSocket with Spring boot.

Continue reading “Reactive streams over the network with RSocket”

Reactive relational databases with R2DBC and Spring

In the past, we’ve covered how to use reactive programming with Project Reactor and Spring. Around that time, I mentioned that the support for databases was limited due to the amount of blocking JDBC drivers.

However, some relational databases do support reactive connectivity, and with R2DBC, we can easily use those within our projects.

Continue reading “Reactive relational databases with R2DBC and Spring”

Running your Spring boot application on Kubernetes

A few weeks ago, I’ve covered how you can properly create Docker images for your Spring boot application. Last time, we’ve also seen how to set up Kubernetes locally with Minikube. Now, it’s time to combine the two, and deploy a Spring boot application on Kubernetes.

Continue reading “Running your Spring boot application on Kubernetes”

Setting up Minikube and Istio on macOS

Recently, I’ve been writing some tutorials about creating cloud native applications with Spring boot. So far, we’ve already covered how to create a Docker image of your Spring boot application. In the next tutorial, we’ll also see how we can run our application on Kubernetes. However, before we can do this, we have to set up our local Kubernetes cluster first. Luckily, Kubernetes makes this easy for us by providing Minikube.

Continue reading “Setting up Minikube and Istio on macOS”

Loading content within a sidebar using Angular routing

A few years ago, I explored the capabilities of the router framework within Angular. One of the aspects I didn’t cover are named router outlets. These outlets are very interesting when it comes to working with master-detail user interfaces. Within this tutorial I’ll show you how you can use them to either activate or deactivate a sidebar component within Angular Material.

Continue reading “Loading content within a sidebar using Angular routing”

Testing your REST controllers and clients with Spring

That Spring allows you to easily develop REST APIs, is probably something we all know by now. With MockMvc and MockRestServiceServer, the same can be said to testing those REST APIs and clients. If you didn’t know this, then you’re at the right place to learn about it, as we’ll explore those options today!

Continue reading “Testing your REST controllers and clients with Spring”