Building an API gateway using a reactive programming model