DEV Community

Discussion on: Express style API with OpenJS Architect

Collapse
 
pchinjr profile image
Paul Chin Jr.

You're welcome! Glad to hear that it helps, if you have any questions, let me know. I have other tutorials about working with APIs and serverless functions.

Collapse
 
rennygalindez profile image
Renny Galindez

At this moment I have one doubt, My functions works isolate and we have to install packages separately for each function, doing this does not result is redundant?, I say these because if we need a package in many function we have to install it as many times as functions we have and our project will have one pacakage in multpiple folders, maybe these is not important, it's just a coruosity for me!

Thread Thread
 
pchinjr profile image
Paul Chin Jr.

When the functions are deployed, they are separate and require their own dependencies. This is good for isolation, but the dev experience has changed since I wrote this article. Now when you use Architect, you no longer need a per function package.json. The Architect framework takes care of looking it up for you. We're calling it Lambda treeshaking blog.begin.com/architect-8-4-say-h...

Thread Thread
 
rennygalindez profile image
Renny Galindez

Thaks! I begining with serverless and you answers help me a lot!