Sign inSign up

linkedgit/oneopp-compose-subject

By linkedgit

Updated over 7 years ago

Jobs, Opportunities, Events operations orchestrator

Image
0

494

linkedgit/oneopp-compose-subject repository overview

Oneopp jobs. events and opportunities operations service

Requirements:

  • Node.js > 8
  • Docker.js > 17.*

Basic Usage

# clone the repo
$ git clone https://[email protected]/linkedgit/oneopp-composer-subject.git
$ cd oneopp-composer-subject

# install 
$ yarn install

# run development/production
$ npm run dev  
$ npm start -- -e production  

# run tests
$ npm test
# runt unit & integration tests in Docker container
$ npm run compose:test

Overview

Oneopp core domain aggregation service. Includes functional operations for events, jobs, hiring, opportunities CRUD.

Dependencies

Depends on services:

  • Hiring service
  • Events service
  • Opportunities service
  • Jobs service
Domain role

Represents opportunity dubdomain application and anti-corruprion layers, exposes the functionality of the domain. Relied to search subdomain for search operations, hiring subdomain and opportunities subdomain for CRUD of business entities. Declare dependencies on infrastructural and domain services required to execute domain logic and orchestrate its execution.

Exposed REST api
  • Job CRUD REST
  • Events CRUD REST
  • Oppportunity CRUD REST
  • Jobs state management
  • Events state management
  • Oppotunities state management
Circuit Breaker

To avoid the chain of failures problem Circuit Breaker pattern is applied. It implements service which wrap a http call in a circuit breaker object, which monitors for failures and self restoring if failure occurs. In this case client will continiousely get 503 respond untill circuit breaker restore its state.

Environement variables

  • MS_NAME
  • NODE_ENV
  • DEBUG
  • PORT
  • EVENTS_SERVICE_URL
  • JOBS_SERVICE_URL
  • HIRING_SERVICE_URL
  • CONTACTS_SERVICE_URL
  • OPP_SECRET
  • OPP_USER
  • OPP_PASS
  • PROXY_AUTH

Tag summary

Content type

Image

Digest

Size

65.5 MB

Last updated

over 7 years ago

docker pull linkedgit/oneopp-compose-subject