Giter Site home page Giter Site logo

results's Introduction

results

Frontend service to visualize the results of the votes.
results

The "results" service illustrates how you can have multiple services share the same load balancer. The "vote" service listens on "/" whereas "results" listens on "/results". AWS Copilot handles creating multiple listener rules for you and assigning them a priority.

How to create this service?

  1. Install the AWS Copilot CLI https://aws.github.io/copilot-cli/
  2. Run
    $ copilot init
  3. Enter "voting-app" for the name of your application.
  4. Select "Load Balanced Web Service" for the service type.
  5. Enter "results" for the name of the service.
  6. Say "Y" to deploying to a "test" environment ๐Ÿš€

Once deployed, your service will be accessible at an HTTP endpoint provided by the CLI like: http://votin-publi-anelun2kxbrl-XXXXXXX.YYYYY.elb.amazonaws.com/results

What does it do?

AWS Copilot uses AWS CloudFormation under the hood to provision your infrastructure resources. You should be able to see a voting-app-test-results stack that yours ECS service along with all the peripheral resources needed for logging, service discovery, and more...

How does it work?

Copilot stores the infrastructure-as-code for your service under the copilot/ directory.

copilot
โ””โ”€โ”€ results
    โ””โ”€โ”€ manifest.yml

The manifest.yml file under results/ holds the common configuration for a "load balanced web service" pattern. The difference between the manifest in the "vote" service and "results" is the http.path field.

Deleting the service

If you'd like to delete only the service from the "voting-app" application.

$ copilot svc delete

If you'd like to delete the entire application including other services and deployment environments:

$ copilot app delete

results's People

Contributors

efekarakus avatar huanjani avatar

Stargazers

Andrew Kaiserauer avatar Juan Ricardo avatar

Watchers

James Cloos avatar  avatar

results's Issues

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.