Skip to content

zuul netflix webapp

Justin Ryan edited this page Mar 24, 2017 · 9 revisions

zuul-netflix-webapp is a web application that brings together other Netflix OSS components to create a functional routing engine.

Running zuul-netflix-webapp

cd into the zuul-netflix-webapp directory.

src/main/resource/zuul.properties provides as many defaults as possible, and explicitly notes the properties that you will need to override.

Your overrides will go in src/main/resources/zuul-local.properties

Here's a quick description of what you'll what to override:

# Paths to directories containing your "pre", "routing", and "post" directories, respectively
zuul.filter.pre.path=
zuul.filter.routing.path=
zuul.filter.post.path=

# Eureka instance URL which will provide info about your applications and nodes
eureka.serviceUrl.default=

# URL to Cassandra host used to store your filters
zuul.cassandra.host=

# Ribbon VIP address and port for your origin application
origin.zuul.client.DeploymentContextBasedVipAddresses=
origin.zuul.client.Port=

Filter Storage

We store our Zuul filters in Cassandra. ZuulFilterPoller runs at a scheduled interval on each node and downloads any updated filters to disk via ZuulFilterDAOCassandra. FilterFileManager then compiles and stores the filters in memory in order to apply them to each request.