diff --git a/README.md b/README.md index 3df8abc..5dbf122 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ This project uses a MySQL `AWS RDS` backend, and a lightweight `k8s`/`Docker`orc * each running NodeJS / Express API * handle biz & logic concerns +* Integrated with an `AWS SQS` broker #### 2 BFFs (backend-for-frontends) diff --git a/circuitBreakerConfig.yaml b/circuitBreakerConfig.yaml index 51aa9b6..bfa64ba 100644 --- a/circuitBreakerConfig.yaml +++ b/circuitBreakerConfig.yaml @@ -12,9 +12,6 @@ spec: - port: 83 name: rec-breaker targetPort: 80 - - port: 80 - name: rec-service - targetPort: 8080 --- apiVersion: apps/v1 kind: Deployment @@ -45,9 +42,4 @@ spec: port: 80 initialDelaySeconds: 5 periodSeconds: 5 - - name: rec-service - image: pmerson/book-recommendations-ms:latest - imagePullPolicy: Always - ports: - - containerPort: 8080 \ No newline at end of file diff --git a/reccCircuitBreaker/app.py b/reccCircuitBreaker/app.py index 206ba18..e0509d9 100644 --- a/reccCircuitBreaker/app.py +++ b/reccCircuitBreaker/app.py @@ -12,7 +12,7 @@ SERVER_HOST = '0.0.0.0' SERVER_PORT = 80 -RECC_ENGINE_HOST = 'http://10.100.236.41:80/recommended-titles/isbn' +RECC_ENGINE_HOST = 'http://3.131.68.68:80/recommended-titles/isbn' REQ_TIMEOUT = 3 BREAKER_LAST_OPENED = None diff --git a/tests/test_books.yml b/tests/test_books.yml index 47b3f0c..7f0ca12 100644 --- a/tests/test_books.yml +++ b/tests/test_books.yml @@ -1,5 +1,5 @@ config: - target: "http://ec2-18-207-204-163.compute-1.amazonaws.com:82" + target: "http://a1a9aa59598b14ac4acebba4c7cedaac-361743319.us-east-2.elb.amazonaws.com:82" http: timeout: 20 phases: @@ -14,7 +14,7 @@ config: defaults: headers: user-agent: "Mozilla/5.0 (X11; CrOS x86_64 8172.45.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.64 Safari/537.36" - Authorization: "Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJLUkFNRVJTIiwibHVscyI6IktSQU1FUlMiLCJjcmVhdGVkIjoxNjE3MjMwNzUxM zIwLCJyb2xlcyI6W10sImlzcyI6InRjdS5nb3YuYnIiLCJlaW8iOiIxMC4xMDAuMTkyLjUxIiwibnVzIjoiSk9BTyBBTkR PTklPUyBTUFlSSURBS0lTIiwibG90IjoiU2VnZWMiLCJhdWQiOiJPUklHRU1fUkVRVUVTVF9CUk9XU0VSIiwidHVzIjoiV ENVIiwiY3VscyI6MjI1LCJjb2QiOjIyNSwiZXhwIjoxNjE3MjczOTUxMzIwLCJudWxzIjoiSk9BTyBBTkRPTklPUyBTUFl SSURBS0lTIn0.qtJ0Sf2Agqd_JmxGKfqiLw8SldOiP9e21OT4pKC8BqdXrJ0plqOWHf0hHbwQWp-foEBZzAUWX0J-QHtLy Q7SRw" + Authorization: "Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJLUkFNRVJTIiwibHVscyI6IktSQU1FUlMiLCJjcmVhdGVkIjoxNjE3MjMwNzUxMzIwLCJyb2xlcyI6W10sImlzcyI6InRjdS5nb3YuYnIiLCJlaW8iOiIxMC4xMDAuMTkyLjUxIiwibnVzIjoiSk9BTyBBTkRPTklPUyBTUFlSSURBS0lTIiwibG90IjoiU2VnZWMiLCJhdWQiOiJPUklHRU1fUkVRVUVTVF9CUk9XU0VSIiwidHVzIjoiVENVIiwiY3VscyI6MjI1LCJjb2QiOjIyNSwiZXhwIjoxNjE3MjczOTUxMzIwLCJudWxzIjoiSk9BTyBBTkRPTklPUyBTUFlSSURBS0lTIn0.qtJ0Sf2Agqd_JmxGKfqiLw8SldOiP9e21OT4pKC8BqdXrJ0plqOWHf0hHbwQWp-foEBZzAUWX0J-QHtLyQ7SRw" plugins: expect: {}