Yan Cui's blog articles

0
comment
on 6/6/2021 6:29 PM
With API Gateway and Lambda, you can handle client errors gracefully by returning a 4xx response. module.exports.handler = async (event) => { // run validation logic return { statusCode: 400 } } This way, we can communicate clearly to the client that there’s a problem with its request. It also lets the Lambda invocation complete … How to handle client errors gracefully with AppSync and Lambda Read More » Liked this article? Support me on Patreon and get direct help from me via a private Slack channel or[...]
>> Read the full article
.
0
comment
on 5/8/2021 10:27 AM
It’s been two years since I last wrote about Lambda layer and when you should use it. Most of the problem I discussed in that original post still stands: It makes it harder to test your functions locally. You will still need those dependencies to execute your function code locally as part of your tests. … Lambda layer: not a package manager, but a deployment optimization Read More » Liked this article? Support me on Patreon and get direct help from me via a private Slack channel or 1-2-1 mentoring. [...]
>> Read the full article
.
0
comment
on 5/5/2021 6:27 AM
An interesting question came up in a conversation today: “How should I manage the Route53 DNS records in a multi-account environment?” Suppose you have configured an AWS Organization with different accounts for dev, staging and production environments. And you have registered the root domain for your application in the master AWS account. When working with … How to manage Route53 hosted zones in a multi-account environment Read More » Liked this article? Support me on Patreon and get direct help from me[...]
>> Read the full article
.
0
comment
on 4/2/2021 6:09 PM
In the last post I discussed my preferred approach for modelling multi-tenant applications with AppSync and Cognito. This approach supports the common requirements in these applications, where there are a number of distinct roles within each tenant. This approach (and others like it) works great when the tenants are isolated. But what if they are … Building a custom IAM system has made me appreciate AWS IAM even more Read More » Liked this article? Support me on Patreon and get direct help from me via a[...]
>> Read the full article
.
0
comment
on 3/27/2021 1:30 PM
Thank you to Josh for asking this question on the AppSync Masterclass forum. His original question goes like this: Let’s say I want to add a one-to-many relationship from Profile to a new property called “Tag” (a complex object with “name” and “color” properties) so a user can define their own Tags. I would also like a … How to model one-to-many relationships with AppSync and DynamoDB Read More » Liked this article? Support me on Patreon and get direct help from me via a private Slack channel or 1-2-1 m[...]
>> Read the full article
.
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper