8. Microservice
Architecture
The microservice architectural
style is an approach to
developing a single application as
a suite of small services, each
running in its own process and
communicating with lightweight
mechanisms, often an HTTP
resource API. These services are
built around business capabilities
and independently deployable by
fully automated deployment
machinery.
- Martin Fowler
16. Dropwizard - Pros
Productivity – Do one thing at a time
Do your best with what you have
Simple & Lightweight
Easy Test, Deployment and Management
Performance
17. Dropwizard - Pros
Productivity – Do one thing at a time
Do your best with what you have
Simple & Lightweight
Easy Test, Deployment and Management
Performance
21. Dropwizard - Cons
Frequently and Large-Scale Changes
Nano-Service Architecture
Complexity at Infrastructure Level
No Application Server
Put More Effort on Monitoring and
24. Project Orginization
com.example.myapplication:
api: Representations.
cli: Commands
client: Client implementation for your application
core: Domain implementation
jdbi: Database access classes
health: Health Checks
resources: Resources
MyApplication: The application class
MyApplicationConfiguration: configuration class
25. Configuration Class
public class BlogConfiguration extends Configuration {
@Valid
@NotNull
@JsonProperty("database")
private DataSourceFactory database = new DataSourceFactory();
public DataSourceFactory getDatabase() {
return database;
}}