Home » Java » Enterprise Java

Enterprise Java

Temporary directories in JUnit 5 Tests

JUnit 4 TemporaryFolder @Rule allowed developers to create tests utilising temporary directories. With JUnit 5, the @Rules are not supported hence testing files and directories required a little bit of additional work. Fortunately, with JUnit 5.4 there is a new built-in extension to handle temporary directories in tests. And it is extremely easy to use. Are you still working with ...

Read More »

Secure Service-to-Service Spring Microservices with HTTPS and OAuth 2.0

spring-interview-questions-answers

“I love writing authentication and authorization code.” ~ No Java Developer Ever. Tired of building the same login screens over and over? Try the Okta API for hosted authentication, authorization, and multi-factor auth. Building a microservices architecture is possible with minimal code if you use Spring Boot, Spring Cloud, and Spring Cloud Config. Package everything up in Docker containers and ...

Read More »

Monitoring Open Liberty with Prometheus & Grafana

java-interview-questions-answers

I’ve recorded a video how to add monitoring to Open Liberty instances using Prometheus and Grafana, by simply configuring server features. Open Liberty can emit technical metrics of server internals if we simply add the monitoring feature (monitor-1.0). The metrics are exposed in the Prometheus format if we further use the MicroProfile Metrics feature (mpMetrics-1.1). In the video I’ll show ...

Read More »

Serverless API with Azure Functions

java-interview-questions-answers

In this post I am going to work on a pretty simple use case. While executing a deployment pipeline FlexDeploy may produce some human tasks that should be either approved or rejected. For example, someone has to approve a deployment to the production environment. It can be done either in FlexDeploy UI or with some external communication channels. Today I ...

Read More »

Applying Bulkheads And Backpressure using MicroProfile

java-interview-questions-answers

I’ve recorded a video how to implement the bulkheads and backpressure using MicroProfile Fault Tolerance. The idea behind bulkheads is to split applications into several execution units that isolate functionality. In enterprise Java applications this typically means to define multiple thread pools. Applying backpressure to clients results in either adding information about the current pressure on the system to the ...

Read More »

Guidance for Building a Control Plane for Envoy Part 3 – Domain Specific Configuration API

java-interview-questions-answers

This is part 3 of a series that explores building a control plane for Envoy Proxy. In this blog series, we’ll take a look at the following areas: Adopting a mechanism to dynamically update Envoy’s routing, service discovery, and other configurationIdentifying what components make up your control plane, including backing stores, service discovery APIs, security components, et. al.Establishing any domain-specific ...

Read More »

Guidance for Building a Control Plane for Envoy Part 2 – Identify Components

java-interview-questions-answers

This is part 2 of a series that explores building a control plane for Envoy Proxy. In this blog series, we’ll take a look at the following areas: Adopting a mechanism to dynamically update Envoy’s routing, service discovery, and other configurationIdentifying what components make up your control plane, including backing stores, service discovery APIs, security components, et. al. (this entry)Establishing ...

Read More »

Centralized Authorization with OAuth2 & Opaque Tokens using Spring Boot 2

java-interview-questions-answers

If you are looking for JWT implementation please follow this link This guide walks through the process to create a centralized authentication and authorization server with Spring Boot 2, a demo resource server will also be provided. If you’re not familiar with OAuth2 I recommend this read. Pre-req JDK 1.8Text editor or your favorite IDEMaven 3.0+ Implementation Overview For this project we’ll ...

Read More »