AppSync VTL resolvers VS JavaScript resolvers VS Lambda resolvers

0

Hi, I've learned that AppSync has three ways to implement resolvers: VTL, JavaScript, and Lambda.

Which resolver do you prefer for production apps? Is there a benefit to use VTL or JavaScript resolvers over Lambda resolvers in terms of cost, performance, development experience, or maintenance experience?

profile picture
HS
asked 7 months ago382 views
1 Answer
0
Accepted Answer

The choice depends on what dimension (performance, cost) is more important for you, as there is not one size fits all solution.

VTL pro is performance but devX and maintenance is very cumbersome

Lambda will introduce a custom variable and possibly tiny latency, but then you can manage resolvers programmatically.

Personally I d suggest to go fir JavaScript, as it both increases DEvX, better maintenance and no cost. Performance may not be negligible but depends on your system throughput and constraints.

Hope it helps ;)

profile picture
EXPERT
answered 7 months ago
profile picture
EXPERT
reviewed a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions