One of the main goals behind moving to a REST Content API is enabling caching of API responses across the board. This will help us scale our APIs to keep up with growing demand, and lowers latency for clients by leveraging our geo-distributed caching infrastructure.
RESTBase requests are already proxied through the regular text varnishes, but caching of responses is still disabled by setting headers to that effect. Before we can allow Varnish to cache specific GET responses, we'll need to set up Varnish purging for those end points. The production logic for this lives in HTCPPurge. The UDP logic itself doesn't look too hard. The config data referenced there is simple enough (one IP address & one TTL) to let us manually replicate it in the RESTBase config for now.