Sample hydrator code
Go CoffeeScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
hydrate.go
license.txt
part.go
proxy.go
readme.md
response.go
server.go
storage.go
upstream.coffee

readme.md

Hydrator

This is a sample hydrator as in Practical SOA - Hydration - Part 1 and Practical SOA - Hydration - Part 2.

It's meant as a guide, not a finished solution.

Runing

upstream.coffee is the mock upstream server that returns a response needing hydration. It doesn't require any packages (aside coffee-script) and can be started with:

coffee upstream.coffee

You can see its response at: http://localhost:4005/

You can run the hydration service by running:

go run app/main.go

You can see the hydrated response at: http://localhost:4006