GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - oatpp/example-microservices: Example project how to do microservices using Oat++. Different build configs and monolithization.

BranchesTags
Open more actions menu

Latest commit

 

History

29 Commits
29 Commits

Folders and files

NameName
Last commit message
Last commit date
book-service
book-service
 
 
facade
facade
 
 
monolith/all-services
monolith/all-services
 
 
user-service
user-service
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
azure-pipelines.yml
azure-pipelines.yml
 
 
build_all.sh
build_all.sh
 
 
ci-install-oatpp-modules.sh
ci-install-oatpp-modules.sh
 
 
diagram.svg
diagram.svg
 
 
run_all_microservices.sh
run_all_microservices.sh
 
 

Repository files navigation

example-microservices Build Status

This is an example project on how to build microservices with Oat++ Web Framework, and how to utilize the Monolithization feature.

See more:

  • Oat++ Website
  • Oat++ Github Repository
  • Monolithization

Note

For more information about this example, see the Monolithization article.

Inside This Repository

|- user-service/                          // User-Service source code
|- book-service/                          // Book-Service source code
|- facade/                                // Facade source code
|- monolith/all-services/                 // Monolithic config to build all services as a Monolith
|- build_all.sh                           // Utility script. Build all services
|- run_all_microservices.sh               // Utility script. Run all services as separate applications

Build And Run

Pre Requirements

  • Install the oatpp
  • Install the oatpp-swagger

Build all

$ ./build_all.sh 

Run as microservices

$ ./run_all_microservices.sh 

Run as monolith

$ ./monolith/all-services/build/all-services-exe

Overview

Facade takes book info from book-service, user info from user-service, merges data, and returns to the client.

Service ports

  • Facade - 8000
  • User - 8001
  • Book - 8002

Example curl

$ curl http://localhost:8000/books/4
{"id": 4, "title": "1984", "author": {"id": 4, "name": "George Orwell"}}

About

Example project how to do microservices using Oat++. Different build configs and monolithization.

oatpp.io/

Topics

microservicesmonolithmonolithizationoatpp

Resources

Readme
Unlicense
Activity
Custom properties

Stars

22 stars

Watchers

1 watching

Forks

3 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.