PuglieseWeb
Ctrlk
  • Home
  • Software development
    • Cloud Data Security Principles
    • Multi-cloud strategies
    • DMS
    • AI
    • AWS Pro
    • AWS
    • Software Design
    • Design technique
    • Technologies
    • Guides
      • OCP
      • AWS
      • Creating a CloudTrail Trail and EventBridge Alert for Console Sign-Ins
      • Load Balancer VS Reverse Proxy
      • Health check
      • Load Balancer
      • HTTP Protocol
      • TCP/IP Network Model
      • Event-base Microservices Implementation Guideline
      • How to write a service
      • Observability
      • Kafka Stream
      • Security
      • Kubernates
      • Unix
      • Setup CentOS 8 and Docker
    • Dev Tools
  • Working for an enterprise
    • Next step
    • Job roles
    • Common issues
Powered by GitBook
On this page
  1. Software development
  2. Guides

How to write a service

  1. Generate the source code using https://start.spring.io/#!type=gradle-project&language=java&platformVersion=2.3.4.RELEASE&packaging=jar&jvmVersion=1.8&groupId=com.puglieseweb.core.services&artifactId=demo&name=demo&description=Core%20service&packageName=com.puglieseweb.core.services.demo&dependencies=web,kafka,cloud-stream,kafka-streams,lombok,h2,data-jpa

2 Structure the code as follows:

Benefits:

  • Adapters and Business logic can be tested separately

  • Changes are easier to change

  • Communication can use multiple adapter

PreviousEvent-base Microservices Implementation GuidelineNextObservability

Last updated 3 years ago

Was this helpful?

Was this helpful?