---
title: Use microservices to divide up a domain
summary: Send request to different origin servers based on the URL path.
url: https://www.fastly.com/documentation/solutions/examples/url-path-based-routing-for-microservices
---

Send request to different origin servers based on the URL path.

## VCL

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/296463fa)

## Compute

### Rust

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/04981f21)

### Javascript

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/44cdb11b)

### Go

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/7101579a)

