• Stars
    star
    214
  • Rank 184,678 (Top 4 %)
  • Language
    Java
  • Created over 7 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Set of demos to demonstrate Envoy Proxy for resilient microservices patterns

Microservices Patterns with Envoy Proxy

... from this blog: http://blog.christianposta.com

The intention of these demos is to help a reader understand how the Envoy Proxy can be used to implement resilient microservices patterns. Each demo focuses on different Envoy Proxy configurations that can be used to implement the desired behavior.

Overview

To run the examples, make sure you have access to a docker daemon. If you type:

docker ps

You should see a response without errors.

Running the demos

To start a demo, run the script (or do it manually) and pass in the parameters for the demo you want to run. Each demo configures the Envoy Proxy differently and may experience different behaviors.

The format for bootstrapping a demo is:

./docker-run.sh -d <demo_name>

For example, to run the circuit-breaker demo:

./docker-run.sh -d circuit-breaker

You can stop the http-client's respective demos with:

./docker-stop.sh

The other various scripts allow us to run the http client (which will be proxied by Envoy):

  • run-http-client.sh - runs the Java http client using environment variables specified for each demo (in each dir's http-client.env file
  • curl.sh - executes a single curl command inside the http-client+envoy container; useful for tests that just need a single (or couple) http calls
  • get-envoy-stats.sh - queries the Envoy Proxy's admin site for statistics that we can use to interrogate the behavior of the demo and verify it
  • reset-envoy-stat.sh - useful for resetting the Envoy Proxy's statistics to re-run some demos/test cases
  • port-forward-minikube.sh useful if using minikube to expose ports locally on your host

Lastly, each demo contains a http-client.env file that controls the settings of the http-client we use. Example:

NUM_THREADS=1
DELAY_BETWEEN_CALLS=0
NUM_CALLS_PER_CLIENT=5
URL_UNDER_TEST=http://localhost:15001/get
MIX_RESPONSE_TIMES=false

We can control the concurrency with NUM_THREADS and the duration with NUM_CALLS_PER_CLIENT. For example, in the above configuration, we'll use a single HTTP connection to make five successive calls with no delays between calls (note that DELAY_BETWEEN_CALLS is 0). We can adjust these settings for each of the demos.

More Repositories

1

istio-workshop

JavaScript
147
star
2

ceposta-devops-ose

Complete Continuous Delivery demo with docker, jboss fuse, gerrit, nexus, gitlab, openshift
Shell
48
star
3

openshift-terraform-ansible

Automate provisioning of OpenShift Origin/Enterprise with infrastructure as code
HCL
47
star
4

docker-kubernetes-workshop

4-day deep dive of docker + kubernetes
35
star
5

istio-demos

Consolidated and automated Istio demos
Shell
27
star
6

kube-demos

Kubernetes demos
Shell
16
star
7

scripted-solo-demos

CLI automated demos
Shell
15
star
8

microservices-by-example-source

Source code for book Microservices by Example
Java
14
star
9

ticket-monster-book

Book describing ticket monster's move to microservices
13
star
10

camel-sqs-example

Example for one of my talks on Camel that shows AWS - SQS component in action
Java
13
star
11

jboss-fuse-fsi-demo

A JBoss Fuse 6.1 demo with a FSI demo
Java
13
star
12

file-rest-blog

Sample code to go along with a Fuse Mediation Router blog for REST endpoints
Java
11
star
13

jms-tester

jms benchmarking tool
Java
8
star
14

batch-systems-examples

spring boot, spring batch, apache camel, apache storm, apache spark, running in docker, kubernetes, and openshift
Java
8
star
15

istio-telemetry-v2

Shell
7
star
16

healthcare-poc

Healthcare POC showing HL7 ingress/egress/transformation in a highly available, scalable, event-driven system
Java
7
star
17

apollo-mqtt-examples

MQTT Examples for Apache Apollo
Java
5
star
18

apollo-openwire-examples

Examples using ActiveMQ 5.x libs to connect to Apache Apollo to test the openwire support
Java
5
star
19

camel-fabric-http-gateway

How to do reverse proxy/load balancing of cxf (REST) based camel routes using fabric8.io and the http-gateway functionality
Java
5
star
20

simple-activemq-example

Simple examples showing how to connect to ActiveMQ to do pub/sub or point to point
Java
5
star
21

ticket-monster-monolith-backend

the first stop on a migration to microservices: monolithic backend for ticket monster
Java
4
star
22

camel-kubernetes-batch

Dig into batch processing with Camel, Spring, and Kubernetes/OpenShift using cluster Job management
Java
4
star
23

typesafe-kubernetes-dsl

Sample project showing type safe kubernetes dsl for manifest generation
Java
4
star
24

explore-bundle-resolution

Sample code to go along with blog post about how OSGI resolves bundles
Java
4
star
25

my-cxf-examples

CXF Examples used for FuseSource CXF Bootcamp
Java
4
star
26

kafka-kubernetes

Run kafka in kubernetes; cluster or standalone
Shell
4
star
27

fuse-fabric-promotion-build

Shows how to migrate fabric profiles from environment to environment
Java
4
star
28

dse-cass-istio-sni

Datastax Cassandra Istio SNI routing example
Python
4
star
29

ticket-monster-admin

The admin backend for a microservices ticketmonster deployment
Java
4
star
30

activemq-exercises-rewrite

Follow up on ActiveMQ training by re-creating the samples
Java
3
star
31

ticket-monster-orders

The orders backend for a microservices deployment of ticketmonster
Java
3
star
32

fis-hello

Fuse Integration Services for OpenShift hello world
Java
3
star
33

spring-boot-camel-narayana

Show using XA transactions with Apache Camel and Spring Boot with the narayana.io TX manager
Java
3
star
34

camel-messaging-example

Camel messaging examples to go along with webinar
Java
2
star
35

quickstart-fuse-rest

Fuse REST app for continuous delivery demo
Java
2
star
36

artemis-replication-configs

Shell
2
star
37

knative-demos

Shell
2
star
38

rider-auto-osgi-itests

Example of pax-exam integration tests for Fuse 6.x
Java
2
star
39

ticket-monster-ui

the UI for the ticket monster demo of migrating to microsevices
JavaScript
2
star
40

contract-first-camel-eap

Demo of contract-first web services on JBoss EAP
2
star
41

devnation-fabric8-cdelivery

Shell
2
star
42

ticket-monster-admin-camel

Java
1
star
43

debezium-kubernetes

Run Debezium/KafkaConnect CDC components in Kubernetes (debezium.io)
Java
1
star
44

gxt-gridplugins

Grid plugins for the GXT Grid
1
star
45

ticket-monster-search

Search backend for ticket monster Events, Venues, and Performances
Java
1
star
46

verify-fips-istio

Shell
1
star
47

christian-posta.github.io

GitHub Pages
JavaScript
1
star
48

simple-gloo-poc

Some simple POC use cases
1
star
49

fabric-service-discovery

Project showing various POC examples of fabric service discovery
Java
1
star
50

hello-scala

learning scala
Scala
1
star
51

atlanta-microservices-day-demos

Automated demos from #redhatatlanta #microservicesday
Shell
1
star
52

activemq-apollo-java-port

First attempts to port apollo to java
Java
1
star
53

ticket-monster-infra

Infrastructure components like Zookeeper, Kafka, and MySQL for running ticket monster microservices
Shell
1
star
54

xbean-spring-example

Creating spring namespaces with xbean-spring
Java
1
star
55

nihao-camel

Hello Camel + REST DSL
Java
1
star
56

ticket-monster-orders-camel

Camel microservice that processes a kafka stream and integrates it with the orders bounded context
Java
1
star