Skip to content

Microservices Architecture #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
raunak-r opened this issue Jul 29, 2022 · 2 comments
Open

Microservices Architecture #25

raunak-r opened this issue Jul 29, 2022 · 2 comments

Comments

@raunak-r
Copy link
Owner

raunak-r commented Jul 29, 2022

Intro to Gateways

@raunak-r
Copy link
Owner Author

raunak-r commented Jul 29, 2022

Python with Eureka

Refer stacklink
Need to have REST implementation that follows Eureka-REST-operations . Below is a sample implementation that follow Eureka REST in Python.

Refer to full documentation at Python client for Netflix Eureka

from eureka.client import EurekaClient
import logging

logging.basicConfig()


ec = EurekaClient("MyApplication",
                  eureka_domain_name="test.yourdomain.net",
                  region="eu-west-1",
                  vip_address="http://app.yourdomain.net/",
                  port=80,
                  secure_vip_address="https://app.yourdomain.net/",
                  secure_port=443
)
print ec.get_zones_from_dns()
print ec.get_eureka_urls()
print ec.register()
print ec.update_status("UP")  # Or ec.register("UP")
print ec.heartbeat()

@raunak-r
Copy link
Owner Author

raunak-r commented Jul 29, 2022

Load Balancers

Mid tier LB's - https://stackoverflow.com/a/57835756 - A mid-tier load balancer is a load balancer that isn't exposed to the Internet, but instead is intended to distribute internally-generated traffic between components in your stack.

An example would be the "order placement" (micro)service verifying prices by sending requests to the "catalog item details" (micro)service -- you need a mid-tier load balancer in front of the multiple nodes providing the "catalog item details" service so that the request is routed to a healthy endpoint for that service, without "order placement" needing to be responsible for somehow finding a healthy "catalog item details" endpoint on its own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant