Azure 是否支持像 AWS 速度模板一样将负载 request/response 映射到 documentDB?
Does Azure support payload request/response mappings into documentDB like AWS velocity templates?
上下文:我们在 AWS 上有一个无服务器架构,我们正试图在 Azure 中复制它。我们最初使用 lambda 到 read/write 到 dynamo,但后来改用速度模板,因为它们更快。
目标:Read/Write 使用无服务器架构的 Azure 文档数据库。
可能的解决方案:
- Read/Write 与 Azure Functions - 我已经这样做了,但怀疑一旦我们与前端集成它会太慢
- 使用相当于 AWS 的 Velocity 模板的 Azure 映射负载 requests/responses
问题:Azure 是否支持负载 request/response 像 AWS 速度模板一样映射到 documentDB?
您可以 front-end/onboard DocumentDB(现在 CosmosDB) API's onto Azure API Management (which is the API Gateway PAAS service available in Azure) and use the end-points from APIM in Azure functions. You can use policies and liquid 模板语言来进一步 customize/transform 消息或阅读消息的一部分。
上下文:我们在 AWS 上有一个无服务器架构,我们正试图在 Azure 中复制它。我们最初使用 lambda 到 read/write 到 dynamo,但后来改用速度模板,因为它们更快。
目标:Read/Write 使用无服务器架构的 Azure 文档数据库。
可能的解决方案:
- Read/Write 与 Azure Functions - 我已经这样做了,但怀疑一旦我们与前端集成它会太慢
- 使用相当于 AWS 的 Velocity 模板的 Azure 映射负载 requests/responses
问题:Azure 是否支持负载 request/response 像 AWS 速度模板一样映射到 documentDB?
您可以 front-end/onboard DocumentDB(现在 CosmosDB) API's onto Azure API Management (which is the API Gateway PAAS service available in Azure) and use the end-points from APIM in Azure functions. You can use policies and liquid 模板语言来进一步 customize/transform 消息或阅读消息的一部分。