Home » Java » Enterprise Java (page 3)

Enterprise Java

Bootiful GCP: Spring Cloud Stream with Google Cloud Pub/Sub

spring-interview-questions-answers

I’ve recently read Josh Long‘s Bootiful GCP series on Sprint Central’s engineering blog and especially liked the 4th part about using Google Cloud’s Pub/Sub. I felt inspired by the series and as I’m also evaluating Spring Cloud Stream for a new project of mine. I thought, I would expand on that article where Josh left off. This article describes how ...

Read More »

Consuming Twitter Streaming API with Spring Integration

spring-interview-questions-answers

1. Overview Spring Integration has been known to have a myriad of connectors for interacting with external systems. Twitter was no exception and for a long time, as Spring Social had been an out-of-the-box solution which Spring Integration leveraged in order to connect to social networks. 1.1 Spring Social EOL Unfortunately, Spring Social has reached its end of life, the ...

Read More »

Log Aggregation using ELK Stack

java-interview-questions-answers

1. Introduction With the use of microservices, it has become easy to create stable distributed applications and get rid of many legacy problems. But the use of microservices has introduced a few challenges also and Distributed log management is one of them. As microservices are isolated hence they don’t share database and log files, so it becomes challenging to search, ...

Read More »

WTF Connection pools

java-interview-questions-answers

Let’s talk about connection pools. I claim that: Default settings of most popular connection pools are poor! For you, it means: Go review your connection pool settings. You might have a problem if you rely on default settings. You may have memory leaks and unresponsive application (even if load is not high at all). Below I will show some of ...

Read More »

Exploring the Spline Data Tracker and Visualization tool for Apache Spark (Part 2)

In part 1 we have learned how to test data lineage info collection with Spline from a Spark shell. The same can be done in any Scala or Java Spark application. The same dependencies for the Spark shell need to be registered in your build tool of choice (Maven, Gradle or sbt): groupId: za.co.absa.spline artifactId: spline-core version: 0.3.5 groupId: za.co.absa.spline artifactId: spline-persistence-mongo ...

Read More »

What’s the case for your API?

java-interview-questions-answers

Disclaimer: In pure REST, API’s are opaque and the URL should be whatever what was sent as a link in the response to a previous request. But, I’m not talking pure REST, I’m talking more pragmatic APIs which involve some concepts from REST and as well as general API best practices. When writing an API, it starts simple. You identify the ...

Read More »

Build a Basic App with Spring Boot and JPA using PostgreSQL

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. Every non-trivial application needs a way to save and update data: a resource server that is accessible via HTTP. Generally, this data must be secured. Java is ...

Read More »

Reactive Spring Webflux with AWS DynamoDB

spring-interview-questions-answers

AWS has released AWS SDK for Java version 2, the SDK now supports non-blocking IO for the API calls of different AWS services. In this post I will be exploring using the DynamoDB API’s of the AWS SDK 2.x and using Spring Webflux stack to expose a reactive endpoint – this way the application is reactive end to end and presumably ...

Read More »