Do you want to know how to develop your skillset to become a Java Rockstar?

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!

 

1. JPA Mini Book

2. JVM Troubleshooting Guide

3. JUnit Tutorial for Unit Testing

4. Java Annotations Tutorial

5. Java Interview Questions

 

and many more ....

 

 

Using UAA OAuth2 authorization server – client and resource

java-interview-questions-answers

In a previous post I had gone over how to bring up an OAuth2 authorization server using Cloud Foundry UAA project and populating it with some of the actors involved in a OAuth2 Authorization Code flow. I have found this article at the Digital Ocean site does a great job of describing the OAuth2 Authorization code flow, so instead of rehashing what is ...

Read More »

Using sun.misc.Unsafe in Java 9

The Java 9 EA version is out and we can now see how to use sun.misc.Unsafe. I led the public campaign to retain access to it in Java 9 which was ultimately successful, leading to the amendments to JEP 260. So, how did things end up? Getting Set Up First you need to download Java 9 EA. For an IDE I ...

Read More »

Microservices in the Chronicle World – Part 5

In this part we look at putting a micro service together as a collection of services, and consider how we can evaluate the performance of these services. We introduce JLBH (Java Latency Benchmark Harness) to test these services. Building a Service Wrapper. For more complex services, we use an EventLoop in Chronicle Threads to manage multiple concurrent tasks. In this ...

Read More »

Microservices in the Chronicle world – Part 4

A common issue we cover in our workshops is, how to restart a queue reader after a failure. The answer is not a simple as you might think.               Tip We do an on-site one week workshop to help kick start a new project, with a look at ensuring the infrastructure has a good ...

Read More »

Microservices in the Chronicle World – Part 3

One of the problems with using microservices is performance. Latencies can be higher due to the cost of serialization, messaging and deserialization, and this reduces throughput. In particular, poor throughput is a problem because the reason we are designing a scalable system is to increase throughput. In Part 2 we saw how we can take a component and add a transport ...

Read More »

Microservices in the Chronicle world – Part 2

In this part we look at turning a component into a service. In Part 1, we looked at how we can easily create and test components which expect asynchronous messages in and produce asynchronous messages out. However, how do we turn this into a service? Turning our components into a service. The key thing which is missing from our components is ...

Read More »

Microservices in the Chronicle world – Part 1

At a high level, different Microservice strategies have a lot in common. They subscribe to the same ideals. When it comes to the details of how they are actually implemented, they can vary. Microservices in the Chronicle world are designed around: Simplicity- simple is fast, flexable and easier to maintain. Transparency- you can’t control what you don’t understand. Reproduceablity- this ...

Read More »

Micro-services for performance

Microservices is a buzz word at the moment. Is it really something original or based on established best practices? There are some disadvantages to the way microservices have been implemented, but can these be solved? Component testability and consistency Once you have assembled a large system, it can be hard or even impossible to profile where the highest delays come ...

Read More »