a friend (and colleague, disclaimer) pushed this recently to github. It passes data through a duck fb layer exactly to avoid context bloat:
https://github.com/agoda-com/api-agent
worth taking a look to see multiple approaches to the problem