vogels icon indicating copy to clipboard operation
vogels copied to clipboard

joi module

Open daaru00 opened this issue 9 years ago • 5 comments

Hi, there is a method for not using joi module? It require a nodejs version up to v4.0 and I have to use this code from a aws lambda function that use v0.10.36 .

So if I can not use vogels without joi I can't use it on an aws enviroment, seems a big limitation..

daaru00 avatar Feb 26 '16 16:02 daaru00

I can confirm this issue. if you revert the Joi to an older version, around version 6x, then it works on lambda.

Vogels is quite slow to startup, so that increases the lambda costs quite a bit - personally I'm just using the raw DynamoDoc client (in the sdk) for my lambda functions.

JoshZA avatar Mar 06 '16 15:03 JoshZA

Ok, I'll try to downgrade Joi. I really interesting to this project, DynamoDoc client is not friendly as Vogels, I will continue to watch this project hoping to completely replace dynamodoc and use ORM feature.

Tank's.

daaru00 avatar Mar 07 '16 08:03 daaru00

Now that AWS Lambda supports node 4.3.x, does it make sense to update Joi to version 8.0.x?

richardhyatt avatar Apr 11 '16 14:04 richardhyatt

The reason for the slow startup on lambda has less to do with Joi but rather the aws-sdk (2-3x the load time of Joi)

richardhyatt avatar May 07 '16 14:05 richardhyatt

I've just upgraded https://www.npmjs.com/package/dynogels to use Joi v8

clarkie avatar Jun 29 '16 07:06 clarkie