Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Deployable infrastructure with nginx

Deployable infrastructure with nginx

Daniel Kocot

August 23, 2022
Tweet

More Decks by Daniel Kocot

Other Decks in Technology

Transcript

  1. Name: Daniel Kocot Role: Senior Solution Architect / Head of

    API Experience & Operations Email: Twitter: @dk_1977 LinkedIn: [email protected] https://www.linkedin.com/in/danielkocot/
  2. API Mediation Architectural layer to manage, protect and enrich an

    API Intercepting API traffic Concept of "outer" APIs No business logic should be handled within this layers
  3. OpenAPI Definition in Detail openapi: 3.0.3 servers: - url: 'http://localhost:8080'

    info: version: 1.0.0 title: News API contact: name: Daniel Kocot url: 'http://www.codecentric.de' email: [email protected] license: name: MIT url: 'https://www.tldrelgal.com/mit' description: An API to provide news tags: - name: news paths: /news: x-nginx-upstream: 'http://remotehost:4000' get: description: gets latest news operationId: getNews tags: - news
  4. Use of OpenAPI Extensions/X-Objects to handle own or vendor needs

    x-vendor-…​ x-…​ Supported by: root level info paths operation parameters responses tags security schemes
  5. From OpenAPI Definition to Configuration as Code paths: /news: x-nginx-upstream:

    'http://remotehost:4000' get: description: gets latest news operationId: getNews tags: - news responses: '200':
  6. Wrap Up Posts on codecentric blog: Posts on my blog:

    Posts on Medium: https://blog.codecentric.de/en/author/daniel-kocot/ https://danielkocot.github.io https://medium.com/@daniel.kocot