Skip to content

romit-kumar/rate-limiter-servicefabric

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rate-limiter-servicefabric

This is sample application which demonstrates how envoy can be used as a rate limiting service in service fabric managed cluester. image

Build and push weatherservice container to ACR.

  1. Clone the repo.
  2. Open PowerShell.
  3. Change the directory to cloned rate-limiter-servicefabric directory.
  4. Login into container registry.
docker login {azurecontainerhost}.azurecr.io -u {azurecontainerhost} -p {authkey}
  1. Docker build the weather api project
docker build -f ./weatherapi/Dockerfile -t weatherservice:1.1 .

image image

  1. Docker tag and push
docker tag weatherservice:1.1 {azurecontainerhost}.azurecr.io/samples/weatherservice:1.1
docker push {azurecontainerhost}.azurecr.io/samples/weatherservice:1.1

image

Build and push envoyservice container to ACR.

  1. Envoy config which should be used is copied to base container image which is specified in envoy/DockerFile. image

Any Envoy Filters can be used depending upon the requirement.

  1. Docker build.
docker build -f ./envoy/Dockerfile -t envoyservice:1.0 .

image

  1. Docker tag and push.
docker tag envoyservice:1.0 {azurecontainerhost}.azurecr.io/samples/envoyservice:1.0
docker push {azurecontainerhost}.azurecr.io/samples/envoyservice:1.0

Build and publish the service fabric application to service fabric managed cluster hosted on azure.

  1. Open ratelimiterservicefarib.sln file in Visual Studio image
  2. Update weatherservicePkg > ServiceManifest > ImageName with image path in ACR image
  3. Update envoyservicePkg > ServiceManifest > ImageName with image path in ACR image
  4. Update ACR account name and password in Application Manifest > Repository Credentials for both the services. image
  5. Build the ratelimitersf project.
  6. Publish the ratelimitersf project to the service fabric managed cluster. image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • PowerShell 68.8%
  • C# 24.1%
  • Dockerfile 7.1%