aditya chaudhariinJavaDeveloperDiary — JDD·16 hours agoObserver Pattern — get the gist in 2 min.The basic idea behind observer pattern is to have a publisher — subscriber like mechanism , where publisher wants to notify multiple subscriber objects regarding some events / state change which is the in interest of subscriber. An observer pattern is a type of behavior design pattern. The observer pattern…Design Patterns2 min read
nbodev·18 hours agoSpring Boot / Docker / Kubernetes / EKS1- Introduction 2- Versions 3- Code 4- Docker with JIB or with Dockerfile 5- Kubernetes 6- EKS 7- Interesting links Introduction This article illustrates the dockerization (containerization) of a Spring Boot application then its deployment with Kubernetes locally then on EKS (Amazon Elastic Kubernetes Service, managed Kubernetes on AWS). Versions …Java5 min read
Shamlymhd·18 hours agoService Provider Interface: Creating Extensible Java ApplicationsEver thought how that JPA implementation (EclipseLink or Hibernate) is picked up by the Java Persistence APIs. Or How does java.sql.DriverManager load the available implementation of java.sql.Driver. Or for that matter How JMS implementation is picked up by the messaging framework. Well they all follow JAVA SPI (Service Provider Interface)…Java4 min read
Sajeban Antonyrex·10 hours agoHow to delete 100 million rows in MySQL table within 30 minutes?Hook I got into a scenario where I had to delete 104 million rows in a table which contained 293 million rows based on a condition. I was able to delete them in less than 30 minutes using a Java application and by making parallel calls to stored procedure. …My SQL4 min read
Fethi ŞEN·2 days agoWhy do we use @Bean annotationTürkçe için Hi, in this article ,as far as i know, i am going to explain that why do we use @Bean annotation in Spring Framework and what is the purpose. But i am not going to explain that How to use @Bean annotation because there are lots of article…Spring3 min read
Chakresh TiwariinShoutLoudz·2 days agoMicroservice: Developing an Authentication Service using Spring BootSo, In this post I am going to share about user onboarding and login feature which is common in all the Applications, So we can design a separate application for register and login of a user. This service will serve the purpose of authentication for all other services. For authentication…Java3 min read
TugbaKaracak·10 hours agoJavaScript Nedir?TARİHÇESİ; 1995 yıllarında web sayfaları sadece statikti, programcıların dinamik olması için istekleri vardı. Netscape Brendan Eich adlı bir çalışanına, web sayfalarına etkileşim sağlayacak bir programlama dili oluşturması için çalışma görevini verdi. …Java Script3 min read
Vikram GuptainJavarevisited·1 day agoJava 8 — Lambda Expression — The Feature That You Must KnowOptimize Your Application Code by Using New Java 8 Features. — Hey, welcome to another interesting and refreshing article — Java 8 Features. This article is 2nd in the series covering Java 8 features. For this article, our focus would be covering Lambda expressions. You can refer to the first article: JAVA 8 FEATURES — INTERVIEW QUESTIONS — STATIC & DEFAULT…Java4 min read
Kiran Kumar·1 day agoHow 𝑯𝒂𝒔𝒉𝑺𝒆𝒕 works internally in JavaHashSet is a class in Java which implements Set Interface and extends AbstractSet. It allows you to store only 𝒖𝒏𝒊𝒒𝒖𝒆 𝒆𝒍𝒆𝒎𝒆𝒏𝒕𝒔 that means no duplicates are allowed. HashSet is a member of 𝑱𝒂𝒗𝒂 𝑪𝒐𝒍𝒍𝒆𝒄𝒕𝒊𝒐𝒏𝒔 𝑭𝒓𝒂𝒎𝒆𝒘𝒐𝒓𝒌. 𝑷𝒐𝒊𝒏𝒕𝒔 𝒕𝒐 𝒃𝒆 𝒏𝒐𝒕𝒆𝒅 𝒃𝒆𝒇𝒐𝒓𝒆 𝒖𝒏𝒅𝒆𝒓𝒔𝒕𝒂𝒏𝒅𝒊𝒏𝒈 𝒊𝒏𝒕𝒆𝒓𝒏𝒂𝒍 𝒃𝒆𝒉𝒂𝒗𝒊𝒐𝒖𝒓 ➡️ HashSet uses HashMap internally to store…Java3 min read
Ivan PolovyiinJavarevisited·1 day agoSpring for GraphQL request validationEvery app has to have some mechanism to validate the user input. The input validation serves 2 purposes. First, it will guarantee an app's smooth operation even if the user makes the request with invalid parameters. Second, it can explain to the user what the user does wrong and give a hint through the message on how to resolve the error. This blog is about user input validation in a web app based on Spring for GraphQL.Java5 min read