Home » Author Archives: Idan Fridman

Author Archives: Idan Fridman

Idan Fridman
Idan is Software engineer with experience in Server side technologies. Idan is responsible for various infrastructure models in the software industry(Telecommunications, Finance).

How to exclude libraries from all dependencies in Gradle

gradle-logo

I am using Spring boot. Spring boot by default comes with logback. I wanted to use log4j (for whatever reasons..) In order to do that I had to exclude logback and add new log4j dependencies: Logback is “hidden” inside this package: compile("org.springframework.boot:spring-boot-starter:$project.ext.springBootVersion") { exclude module: 'org.springframework.boot:spring-boot-starter-logging' } compile("org.springframework.boot:spring-boot-starter-log4j:$project.ext.springBatchVersion") Now when you try to run app you get this Exception: SLF4J: Class ...

Read More »

My Exprience using ElasticSearch NodeJS and ExpressJS

javascript-logo

General requirement Part of a system I am currently working on is manipulating raw data. The data being sent from multiple client devices (Android/Iphone devices, etc..) ~ 100,000 requests per day. The raw data needs to be collected and ready for later use. It gotta be searchable and aggregated for calculations. I had little experience with Solr but this time ...

Read More »

Mapping your Entities to DTO’s Using Java 8 Lambda expressions

java-logo

We all facing the cluttered overhead code when we need to convert our DTO’S to Entities(Hibernate Entities, etc..) and backwards. In my example ill demonstrate how the code is getting much shorter with Java 8. Let’s create the Target DTO:             public class ActiveUserListDTO { public ActiveUserListDTO() { } public ActiveUserListDTO(UserEntity userEntity) { this.username = ...

Read More »

AmazonSQS and Spring for messaging queue

spring-interview-questions-answers

The next post will demonstrate how to use Spring JMS templates and DLMC’S together with AmazonSQS API in order to place message queue. Why would I use Amazon SQS? Easy to configure Cross-platfom support Earn from your self redundant, conjunction and scaling worries.         Why I wouldn’t use Amazon SQS? If the latency requirement demands less than  ~20 ...

Read More »

Authentication and Authorization as an open source solution service

java-interview-questions-answers

Designing a centralized service for all user data by implementing authentication and authorization (a&a) mechanism. I’ll share my experience and finalize conclusions for a solution. The design includes the clients (Web applications) and the server (a&a center). Terminology:       1. Authentication: Authentication is the mechanism whereby systems may securely identify their users. Answering the question “Who is the User?” ...

Read More »

Invoking Async method call using Future object in Spring

spring-interview-questions-answers

The next example will demonstrate an async method call inside the Spring container. Why do we need async method calls? In some cases we don’t really know if replay is expected or when a result supposed to be delivered back. Traditional way In the Java EE world of handling async calls is using Queue/Topic. We could do the same in ...

Read More »

Aggregating async results using Spring Integration

spring-interview-questions-answers

Hi, I came across an issue which has very nice solution using Spring Integration. Many times we have the need for a scenario of dispatching a message to unknown number of destinations. For this purpose we have the Topic methodology. But some times in addition we also want to receive answers from all destinations which received the message and aggregate ...

Read More »

Spring Integration key notes with real life scenarios

spring-interview-questions-answers

This post will summarize Spring Integration (SI) important key notes together with messaging Integration patterns. For each key note I will add a real life example based on my experience. Splitter a. What it does? The Splitter is actually a pattern which receives one message in one point and split it into several. b. Why is it good for me? The Splitter can be used ...

Read More »

Monitoring and detecting memory leaks in your java application

java-logo

So your application is running out of memory, you’re spending days and nights analyzing your application hoping to catch the memory holes in your objects. The next steps will explain how to monitor and detect your memory leaks to make sure your app is on the safe side. 1. Memory leak suspicion If you have a suspicion there is a memory leak a convenient way to make sure ...

Read More »
Do you want to know how to develop your skillset and become a ...

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!
Get ready to Rock!
To download the books, please verify your email address by following the instructions found on the email we just sent you.

THANK YOU!

Close