Skip to main content

Posts

Showing posts from July, 2020

Microservices Architecture and Preferred Design Pattern

Microservice Architecture and prefered Design Pattern Microservices are designed to offer greater agility and operational efficiency for the enterprises. My  goals and principles for a microservice architecture are Continuous and faster delivery through DevOps,  Built around business context (better business-developer coordination),  Reduced cost, Independently deployable, Decentralized, Small and maintainable code. Microservices is all about building around business domain or business context, creating decoupled code and making services loosely coupled, applying the single responsibility principle. A business context could be defined using DDD(domain driven design concept), It is something that a business does in order to generate value. A business context often corresponds to a business objective, e.g. Order Management is responsible for orders Customer Management is responsible for customers Decompose by Subdomain Decomposing an application using business ca...

Java HelloWorld with Gradle & Eclipse

To understand Gradle with Java build environment; this guide walks you through using Gradle to build a simple Java project. Follow the below link for details steps, I am summarizing some basic points to remember during this process.  https://spring.io/guides/gs/gradle/ Important notes : Java source folder in eclipse map to 'src/main/java/' and package starts from here imp file build.gradle it helps better management of dependencies, Jar files  $ ./gradlew build $ ./gradlew run Eclipse integration following this link https://www.vogella.com/tutorials/EclipseGradle/article.html The final version of :  build.gradle apply plugin : 'java' apply plugin : 'application' apply plugin : 'eclipse' mainClassName = 'hello.HelloWorld' sourceCompatibility = 1.8 targetCompatibility = 1.8 repositories { mavenCentral() } dependencies { compile " joda -time:joda-time:2.2" testCompile "junit:junit:4.12...