Home » Java » Enterprise Java

Enterprise Java

Package by layer for Spring project is obsolete

spring-interview-questions-answers

I believe Spring application shouldn’t be structured in package by layer approach. In my opinion, package by feature makes much more sense. First of all, let me describe each approach briefly. “Package by layer” (“Folder by type” in non Java world) This project structure groups source code files into packages/directories based on architecture layer they belong to: . └── net ...

Read More »

Free eBook: The Complete Guide to Java Logging in Production

The Complete GitHub Logging Research: How the World’s Top Companies Choose How and What to Log We all use log files to monitor our applications in production. Some of us prefer using log management tools like Splunk or ELK, while others sift through raw logs on their notepad or terminal. It doesn’t matter if you choose the former or the ...

Read More »

Inside a Lambda Runtime: A Peek into the Serverless Lair

java-interview-questions-answers

Ever wondered what it is like inside a lambda? Stop wondering. Let’s find out. Ever since they surfaced in 2014, AWS’s lambda functions have made themselves a steaming hot topic, opening up whole new annals in serverless computing. The stateless, zero-maintenance, pay-per-execution goodies are literally changing—if not uprooting— the very roots of the cloud computing paradigm. While other players like ...

Read More »

Machine Learning Trends of 2018 combined with the Apache Kafka Ecosystem

java-interview-questions-answers

At OOP 2018 conference in Munich, I presented an updated version of my talk about building scalable, mission-critical microservices with the Apache Kafka ecosystem and Deep Learning frameworks like TensorFlow, DeepLearning4J or H2O. I want to share the updated slide deck and discuss a few updates about newest trends, which I incorporated into the talk. The main story is the ...

Read More »

Integration With Zapier

java-interview-questions-answers

Integration is boring. And also inevitable. But I won’t be writing about enterprise integration patterns. Instead, I’ll explain how to create an app for integration with Zapier. What is Zapier? It is a service that allows you tо connect two (or more) otherwise unconnected services via their APIs (or protocols). You can do stuff like “Create a Trello task from ...

Read More »

Spring Boot 2 Applications and OAuth 2 – Setting up an Authorization Server

java-interview-questions-answers

This will be a 3 post series exploring ways to enable SSO with an OAuth2 provider for Spring Boot 2 based applications. I will cover the following in these posts: 1. Ways to bootstrap an OpenID Connect compliant OAuth2 Authorization Server/OpenID Provider. 2. Legacy Spring Boot/Spring 5 approach to integrating with an OAuth2 Authorization Server/OpenID Provider. 3. Newer Spring Boot 2/Spring ...

Read More »

Top 20 Spring REST Interview Questions Answers for Java Programmers

spring-interview-questions-answers

Hello guys, I have been sharing some REST with Spring tutorials from last a couple of weeks and today, I am going to share some of the frequently asked Spring and REST interview questions to Java developers applying for Web developer roles. Since Spring Framework is the most popular and the standard framework for developing Java web application and RESTful Web ...

Read More »

Session Management using Spring Session with JDBC DataStore

spring-interview-questions-answers

In web applications, user session management is very crucial for managing user state. In this article, we are going to learn about what are the approaches we have been following to manage user sessions in a clustered environment and how we can use Spring Session to implement it in a much simpler and more scalable way. Typically in production environments, we will ...

Read More »

Running on time with Spring’s scheduled tasks

spring-interview-questions-answers

Do you need to run a process everyday at the exact same time like an alarm? Then Spring’s scheduled tasks are for you. Allowing you to annotate a method with @Scheduled causing it to run at the specific time or interval that is denoted inside it. In this post we will look at setting up a project that can use ...

Read More »