Friday, 26 April 2024

elastic search example

 https://medium.com/@abhishekranjandev/step-by-step-guide-to-using-elasticsearch-in-a-spring-boot-application-477ba7773dea

Monday, 22 April 2024

springboot logger intergration

 https://medium.com/@AlexanderObregon/how-to-improve-application-logging-in-spring-boot-with-logback-4ec4f81ccb36

Friday, 19 April 2024

git cherry pick example

 

git cherry-pick is a Git command used to apply a specific commit from one branch to another. It's particularly useful when you want to pick individual commits from one branch and apply them to another branch without merging the entire branch.

Here's how you can use git cherry-pick:

  1. Identify the commit you want to apply to another branch. You can find the commit hash using git log.

  2. Switch to the branch where you want to apply the commit:

    bash
T
  • git checkout <target_branch>
  • Use git cherry-pick followed by the commit hash you want to apply:

    bash
  • git cherry-pick <commit_hash>
  • Resolve any merge conflicts if they occur. Git will pause the cherry-pick process if there are conflicts and allow you to resolve them manually.

  • Once conflicts are resolved, continue the cherry-pick process by running:

    bash
  • git cherry-pick --continue
  • Alternatively, you can abort the cherry-pick if you encounter issues:

    bash
    1. git cherry-pick --abort

    Here's an example:

    Suppose you have a branch featureA with a commit A that you want to apply to your main branch.

    1. Identify the commit hash of commit A:

      bash
  • git log
  • Switch to the main branch:

    bash
  • git checkout main
  • Cherry-pick commit A:

    bash
    1. git cherry-pick <commit_hash_of_A>
    2. Resolve conflicts if any.

    3. Continue or abort the cherry-pick process as needed.

    After the cherry-pick is complete, the changes from commit A will be applied to your main branch, allowing you to incorporate specific changes from one branch into another without merging the entire branch.

    Thursday, 18 April 2024

    Kafka interview question

     https://medium.com/@fromFullStack/top-25-kafka-interview-questions-867a5d8f31d8

    cisco interview question

     https://rathod-ajay.medium.com/cisco-java-developer-interview-transcript-2024-java-spring-boot-hibernate-34ed516ae32d

    Wednesday, 17 April 2024

    Java 8 stream program

     https://medium.com/@veenaraofr/java8-stream-api-commonly-asked-questions-about-employee-highest-salary-99c21cec4d98

     

     

    https://medium.com/@veenaraofr/java8-interview-questions-1be1668b74e3 


    https://medium.com/@vikas.taank_40391/reduce-vs-collect-in-java-8-dd381c81c1af


    https://medium.com/@abhishek.talakeriv/java8-stream-api-commonly-asked-interview-questions-part-2-863e5c808842

    Tuesday, 16 April 2024

    Architecture pattern

     

    1. What is a Software Architecture Pattern
    2. Layered Architecture Pattern (this post)
    3. Microkernel Architecture Pattern
    4. Event Driven Architecture Pattern

     

    https://www.oreilly.com/library/view/software-architecture-patterns/9781098134280/ch04.html 

    https://medium.com/wix-engineering/6-event-driven-architecture-patterns-part-1-93758b253f47

    Monday, 15 April 2024

    HashMap interview question

     https://www.java67.com/2017/08/top-10-java-hashmap-interview-questions.html

     

     

    https://www.knowledgehut.com/interview-questions/hashmap-interview-questions

    Map basic concept

     https://javaconceptoftheday.com/java-hashmap-programs-and-examples/

    Wednesday, 10 April 2024

    WhatsApp System design

     https://medium.com/@sureshpodeti/system-design-whatsapp-87bd39fe2f51

    springboot design pattern explained

     https://pwskills.com/blog/architecture-of-spring-boot-examples-pattern-layered-controller-layer/