Home » Java » Enterprise Java

Enterprise Java

Spring State Machine: what is it and do you need it?

spring-interview-questions-answers

State machine is a model of computation based on the finite states, as Wikipedia very obligingly says. Usually there are workflows to go with the states, meaning that you can’t just go from any state to any other state: there are rules one should follow. The transitions between these states are limited by the rules. The Spring framework has a ...

Read More »

Model Serving: Stream Processing vs. RPC / REST with Java, gRPC, Apache Kafka, TensorFlow

java-interview-questions-answers

Machine Learning / Deep Learning models can be used in different ways to do predictions. My preferred way is to deploy an analytic model directly into a stream processing application (like Kafka Streams or KSQL). You could e.g. use the TensorFlow for Java API. This allows best latency and independence of external services. Several examples can be found in my Github project: Model ...

Read More »

6 Log Management Tools You NEED to Know (And How to Use Them)

java-interview-questions-answers

Without the right tools to aggregate and parse your log data, finding and understanding the information you’re looking for is nearly impossible There are endless uses for logs because the logs themselves are endless. Application logs, security logs, BI logs, Lincoln logs (Ok, maybe not)… Setting aside security, BI and childhood fun for a moment, even looking specifically at uses ...

Read More »

Apache Camel 2.22 Released with Spring Boot 2 support

Today we released the latest Apache Camel 2.22.0 release which is the first release to officially fully support Spring Boot 2. This is a major effort as the Spring Boot v1 to v2 upgrade for a big framework like Apache Camel took some effort – so many thanks to the Camel team and the contributions. The support for Spring Boot ...

Read More »

Spring Security with Spring Boot 2.0: Securing your endpoints

spring-interview-questions-answers

Up until now in our previous posts we had our endpoints and controllers secured using the default spring security configuration. When Spring Security is on the classpath, the auto-configuration secures all endpoints by default. When it comes to complex applications we need different security policies per endpoints. We need to configure which endpoints should be secured, what type of users ...

Read More »

Developing with CUBA – a big shift from Spring?

spring-interview-questions-answers

Reading requirements for yet another web project for internal corporate use you (at least myself) usually see a pretty common set: well-defined data storage structure (or sometimes it’s an existing legacy DB), lots of forms for data entry, quite complex business logic, reporting and integrations with lots of existing corporate systems from accounting to supply management, thousands of concurrent users. ...

Read More »

3 Pitfalls Everyone Should Avoid with Hybrid Multicloud (Part 3)

The daily cloud hype is all around you, yet there are three pitfalls everyone should avoid. From cloud, hybrid cloud, to hybrid multicloud, you’re told this is the way to ensure a digital future for your business. These choices you’ve got to make don’t preclude the daily work of enhancing your customer’s experience and agile delivery of those applications. Let’s ...

Read More »

Authorizing Resources Based On Who Created Them

java-interview-questions-answers

A colleague of mine pointed me to an interesting question on StackOverflow and suggested it may be a good one for me to answer because of my experience with Spring. The question was, “How to authorize specific resources based on users who created those in REST, using annotations.” The gist of it is this: What I’m trying to do is ...

Read More »