Git Product home page Git Product logo

javacommunitymicroservice's Introduction

javacommunitymicroservice's People

Contributors

nstarlike avatar

javacommunitymicroservice's Issues

Implement User Service

User service has REST API endpoints to save and get a user
User service brings a department information from the Department Service using Open Feign framework

Add EmailService

EmailService sends an email

  1. Dependencies
    • spring-boot-starter-mail
    • spring-cloud-starter-netflix-eureka-client
    • spring-cloud-config-client
  2. Properties
    • Application name
    • Config server
    • Configure endpoint exposure for refresh
    • Eureka server
    • Use port 8083
    • SMTP host, port, credentials, properties
  3. Service Layer
    • Send a mail using the JavaMailSender bean

Implement Athentication Service

Create Authentication Service to generate an OAuth2 access token and to validate it
Add Spring Security OAuth2 clients in services

Make a project skeleton

Add module projects of components, Client, API Gateway, Service Registry, Config Server, Authorization Service, User Service and Department Service

Add email async communication

Sending an email from UserService to EmailService asynchronously using Apache Kafka Message broker

  1. Producer

    1. Dependencies
      • Kafka
    2. Properties
      • Topic name
      • Producer
    3. DTO
      • User, UserEvent
    4. Configuration
      • Kafka Topic bean
    5. Service
      • Send a message to Message Broker
    6. Controller
      • Send a message using the Service layer
  2. Consumer

    1. Dependencies
      • Kafka
    2. Properties
      • Topic name
      • Consumer
    3. DTO
      • User, UserEvent
    4. Service
      • Receive a message from Message Broker

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.