Giter VIP home page Giter VIP logo

cloud-wp-ws19's People

Contributors

pokgak avatar

Stargazers

 avatar

Watchers

 avatar  avatar

cloud-wp-ws19's Issues

example microservices with kubernetes and cloud

Current Design

A reverse proxy sits in front of the backend services and it is the only service that is exposed to the public. The backend services are all in a private network. They can talk to each other and the reverse proxy but the public can only reach these services through the reverse proxy.

Components needed

  • service discovery

TODO

Erste Implementierung User service

Da wir schon definiert wie die API aussehen soll, können wir mit der Implementierung anfangen.

Meine Vorschlag wäre erstmal eine "skeleton" / leere Methode schreiben, die noch kein Logik enthält aber Unit Tests ermöglicht.

Architecture design draft

Architecture design

The application targets to run in the cloud (AWS, Azure, GCP, IBM Cloud) with the ability to move between the cloud providers with no changes to the architecture and minimal changes to the application code itself.

Services

  • Public-facing API service - accepts client requests from the internet and forwards to the responsible service
  • User service - stores and handles information about the users
  • AuthBearer service - sends out and verifies auth tokens
  • File service - handles file storing, fetching, updating

cloud-architecture

Link to edit diagram

Public-facing API

  • the only public-facing service

AuthBearer service

  • accepts request from other service to authenticate a client and sends a token back
  • tokens can be used with other services
  • other services can verify token with AuthBearer service
  • optional: handle third-party OAuth login ("social-login")

User service

  • stores account info in DB
  • UUID for each user

File service

  • uses s3 for file storage
    • all user files stored in the same bucket
    • files stored using level 3 (name based) UUID
    • /<user-id>/<file-UUID>
  • metadata in DB
    • UUID to filename mapping
    • bucket ID where the file is stored
    • tracks storage usage of each user
    • minimal metadata sent to user as XML
      • UUID not included
      • XML contains info for client UI to display/search/filter files (name, size, modified date)

DevOps

  • use ansible Terraform for its multi-cloud support
  • fabric8 maven plugin to deploy Java application to Kubernetes

Erste Implementierung Files service

Da wir schon definiert wie die API aussehen soll, können wir mit der Implementierung anfangen.

Meine Vorschlag wäre erstmal eine "skeleton" / leere Methode schreiben, die noch kein Logik enthält aber Unit Tests ermöglicht.

Setup pipeline with Travis-CI

TODO

  • how to run tests? - run tests as scripts called from .travis.yaml
  • how to do continuous deployment to cloud (GCP, Azure)?
    • define separate jobs for testing and deployment
    • Deployment to a specific cloud can be done through
  • workflow when using CI/CD? push to master? PR?
    • CI run when PR, CD run when new push to master
    • define stage in .travis.yaml with condition if: type = push and branch = master
  • setup CI for testing PRs using hello-world application
  • setup CD for deploying when new commits pushed to master using hello-world application

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.