Home » Java

Java

Have You Tried the MicroProfile Starter Yet?

java-interview-questions-answers

The SPRING INITIALIZR at https://start.spring.io has been around for a while and is the best way to bootstrap a new Spring Boot application. So far, there hasn’t been a similar way to bootstrap a new MicroProfile project even if the different vendors have provided starters for their implementations. But the wait is over! The MicroProfile Starter is currently in “Beta”, ...

Read More »

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

java-interview-questions-answers

Establishing your control-plane interaction points and API surface Once you’ve thought through what components might make up your control-plane architecture (see previous), you’ll want to consider exactly how your users will interact with the control plane and maybe even more importantly, who will your users be? To answer this you’ll have to decide what roles your Envoy-based infrastructure will play ...

Read More »

Guidance for Building a Control Plane for Envoy – Identify Components

java-interview-questions-answers

Identify which components you need for your control plane As the spectrum of operating environments varies wildly, so too could the components needed to implement a control plane for Envoy. For example, at one extreme, if you have Envoy files statically generated at build time and shipped to your Envoy, you will need components like: Template engineData store / VCSPer-service ...

Read More »

Accumulative: Custom Java Collectors Made Easy

Accumulative is an interface proposed for the intermediate accumulation type A of Collector<T, A, R> in order to make defining custom Java Collectors easier. Introduction If you’ve ever used Java Streams, you most likely used some Collectors, e.g.: Collectors.toListCollectors.toMap But have you ever used… A composed Collector? It takes another Collector as a parameter, e.g.: Collectors.collectingAndThen.   A custom Collector? ...

Read More »

Asynchronous RDBMS access with Spring Data R2DBC

spring-interview-questions-answers

Not too long ago, a reactive variant of the JDBC driver was released. Known as R2DBC. It allows data to be streamed asynchronously to any endpoints that have subscribed to it. Using a reactive driver like R2DBC together with Spring WebFlux allows you to write a full application that handles receiving and sending of data asynchronously. In this post, we ...

Read More »

Spring Dependency Injection – Field vs Setter vs Constructor Injection

spring-interview-questions-answers

Welcome to Spring Dependency Injection – Field vs Setter vs Constructor Injection tutorial. Learn the difference between Field Injection, Setter Injection and Constructor injection. With the help of code examples, we will see the benefits of using each of them and why to chose one over the other. More on Spring Dependency Injection: Spring Setter Dependency Injection ExampleSpring Constructor Dependency ...

Read More »

Spring Field Dependency Injection Example

spring-interview-questions-answers

Learn how to write a Spring Field Injection example. The Field Injection is a type of Spring Frameworks Dependency Injection. In this tutorial we will write couple of classes and see hot the Field Injection Works. More on Spring Dependency Injection: Spring Setter Dependency Injection ExampleSpring Constructor Dependency Injection ExampleSpring Dependency Injection – Field vs Setter vs Constructor InjectionSpring Dependency ...

Read More »