Home » Java » Enterprise Java (page 20)

Enterprise Java

Build a Secure API with Spring Boot and GraphQL

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. GraphQL is a data query language developed by Facebook in 2012 to solve a shortcoming of REST APIs and traditional database models. All too often, when programmers ...

Read More »

Swagger UI on MicroProfile OpenAPI

java-interview-questions-answers

MicroProfile OpenApi gives us a standardized way to describe our JAX-RS API’s using OpenApi 3. If you have used swagger-jaxrs and swagger-annotations before, this will feel very familiar to you as OpenApi is built on the Swagger base. On Nov. 5, 2015, SmartBear in conjunction with 3Scale, Apigee, Capital One, Google, IBM, Intuit, Microsoft, PayPal, and Restlet announced the formation ...

Read More »

Reusable MicroProfile Health probes

java-interview-questions-answers

MicroProfile Health API is a very basic API to report the state of your service, based on one or more Health Probe. It’s very useful in scenarios where some Server or Cluster Controller need to decide if and when your instance should be restarted. Using MicroProfile Health API in your application is as simple as implementing one (or more) org.eclipse.microprofile.health.HealthCheck ...

Read More »

A Caveat With AWS Shared Resources

java-interview-questions-answers

Recently I’ve been releasing a new build, as usual utilizing a blue-green deployment by switching the DNS record to point to the load balancer of the previously “spare” group. But before I switched the DNS, I checked the logs of the newly launched version and noticed something strange – continuous HTTP errors from our web frameworks (Spring MVC) that a ...

Read More »

JSON-B Asymmetrical Property Binding

The JSON-B specification defines binding annotations such as @JsonbProperty or @JsonbTransient to declaratively map Java objects to JSON, and back. These annotations can be used ‘asymmetrically’ to define different handling of serialization and deserialization. If JSON Binding annotations are annotated on Java properties, or on both getters and setters, they will control how the objects are serialized and deserialized. If ...

Read More »

MongoDB Tutorial for Beginners

1. Introduction to MongoDB In this post, we feature a comprehensive MongoDB Tutorial that integrates with a Java-based application. Whenever we read about NoSQL databases, we need to know why were they ever developed when SQL databases were working excellent. NoSQL foundations grew upon relaxed ACID (atomicity, consistency, isolation, durability) guarantees in favour of performance, scalability, flexibility and reduced complexity. ...

Read More »

Spring Application Architectures

spring-interview-questions-answers

I recently received a question from one of my blog‘s readers, Ajay, and decided to share my answer here  to help others with similar questions in mind. Here’s the question from Ajay: Hello David, I would like to know the difference btw the two types of MVC application architecture that I have come across recently: 1) The ones used in ...

Read More »

Corda Services 101

I’m in the mood to write a short and to the point post today. I’m actually curious how quickly I can get this published. So let’s go. This post is about Corda Services (using Corda version 3.2). What are they? As a developer that uses Spring a lot, I would personally say they are like Beans. There is more than ...

Read More »

Istio’s Networking API Explained

java-interview-questions-answers

Istio version 1.0 comes with a networking API that comprises a lot of features and covers a variety of scenarios. The networking API has evolved in the last couple of months and might not be self-explanatory, right away. What are the concepts and building blocks of this API, and how do we use the individual Istio resource types in order ...

Read More »