Home » Java (page 5)

Java

Benchmark for new string methods of Java 11

While I was checking what’s new in Java 11, I saw that there are several new methods for String class. So I wanted to do a microbenchmark with old way of doing things and by using new methods. These new methods are; boolean isBlank() String strip() Stream lines() isBlank() is tested agains trim().isEmpty(), strip() is tested agains trim() and lines() ...

Read More »

Spring Boot Microservices , Docker and Kubernetes workshop – part3

In the previous posts we build few micro services (Order Service, Product Service, Customer Service) for an order management system using Docker and Spring Boot. We used Netflix libraries to manage, discover and load balance the micro services. Managing these micro services and their multiple containers could get a bit tricky; especially in terms of Scalability, Observability, Security, Monitoring and ...

Read More »

Locks In Java

A lock is a thread synchronization mechanism like synchronized blocks. Locks are implemented internally using synchronized blocks. Therefore, we can use locks instead of synchronized keywords in Java. A Lock is more flexible and more sophisticated than a synchronized block. From Java 5 version, JDK provides several implementations of locks, like ReentrantReadWriteLock, ReentrantLock, and StampedLock, etc. 1. Differences between Synchronization ...

Read More »

Database Week at the AWS Loft

java-interview-questions-answers

Here are my notes: https://databaseweekoctober2019sf.splashthat.com Databases on AWS: The Right Tool for the Right Job I’m not taking super deep notes for many of these talks. I’m focusing on the highlights. PostgreSQL came after MySQL. 8 categories of DBs on AWS: RelationalKey valueDocumentIn-memoryGraphSearchTime seriesLedger Search for: AWS Database Services For relational, they have Amazon Aurora. It’s compatible with MySQL and ...

Read More »

Top 6 Most Used Redis Libraries

Currently the most popular key-value store in the world, Redis has earned its wide adoption rate by providing high speeds and low latency, packed with a flexible feature-set aimed at app developers.  Redis is an in-memory data structure store, used as a database, cache, and message broker distributed under the BSD license. Redis is used by many leading tech brands ...

Read More »

[Upcoming Webinar] Troubleshooting Kubernetes: The 7 Key Components You Need to Have

In case you haven’t heard, containers are eating the world. This shift is transforming everything we’ve ever known about developing, delivering and maintaining our applications – particularly when it comes to resolving errors. With so many moving pieces, getting to the bottom of critical issues lurking in your Kubernetes-based apps can feel impossible. Traditional methods of troubleshooting – like sifting ...

Read More »

Become a Master of Java Streams – Part 4: Database Streams

SQL has always been a declarative language whereas Java for a long time has been imperative. Java streams have changed the game. Code your way through this hands-on-lab article and learn how Java streams can be used to perform declarative queries to an RDBMS database, without writing a single line of SQL code. You will discover, there is a remarkable ...

Read More »

Tell us what you want and we will make it so: consumer-driven contract testing for messaging

java-interview-questions-answers

Quite some time ago we have talked about consumer-driven contract testing from the perspective of the REST(ful) web APIs in general and their projection into Java (JAX-RS 2.0 specification) in particular. It would be fair to say that REST still dominates the web API landscape, at least with respect to public APIs, however the shift towards microservices or/and service-based architecture ...

Read More »

Elastic Stack Introduction

java-interview-questions-answers

When you are running software that is critical for your company you can’t have logs just for analysing things that happened some time ago, having the client tell you that your application is broken while you didn’t even know what was happening is a real problem. One of the ways to deal with that is using monitoring and logging. Most ...

Read More »