https://www.prisma.io/ logo
Join Slack
Powered by
# prisma-whats-new
  • m

    mwickett

    08/29/2017, 3:10 PM
    Anyone using Zeit Now (with Micro) to run your Functions, rather then the built in Graph.cool functions? Copying and pasting (manually maintaining sync with git repo) is getting rough.
    n
    • 2
    • 1
  • a

    antho1404

    08/29/2017, 3:16 PM
    i’m using https://webtask.io/ which is similar and yes better than the copy paste. I still have some inline functions, it depends the complexity of it, if the function is let say more than 20 lines i use a serverless function, otherwise just the inline function they provide (you can test them quite easily when you open the popup in full screen)
  • m

    mwickett

    08/29/2017, 3:20 PM
    What’s the pricing like on Webtask?
  • w

    wesbos

    08/29/2017, 3:22 PM
    @mwickett also investigating this right now - the graph cool functions don’t give me any logs and the copy/paste is super annoying
    😞 1
    n
    • 2
    • 1
  • m

    mwickett

    08/29/2017, 3:23 PM
    Yeah - I don’t really want to take on the (perceived?) complexity of AWS. The Serverless project could work as well. I really like Now’s simplicity, but the pricing may be an issue.
  • m

    mwickett

    08/29/2017, 3:24 PM
    I’ve already got 12 functions.
  • a

    antho1404

    08/29/2017, 3:24 PM
    webtask is free if you don’t have more than 1 function called per second and after you need to contact them
  • w

    wesbos

    08/29/2017, 3:25 PM
    How are you handling the URLs with now? It seems good but having to deploy each fucntion individually sounds like a lot of work too
  • w

    wesbos

    08/29/2017, 3:25 PM
    Like do you create a new now instance for each function?
  • a

    antho1404

    08/29/2017, 3:25 PM
    otherwise if you are using aws, serverless is really easy to use and create all the endpoint but still more complicated than webtask or now
  • a

    antho1404

    08/29/2017, 3:26 PM
    @wesbos there is logs in graphcool functions if you click on the small icon on the right of your function line
  • w

    wesbos

    08/29/2017, 3:27 PM
    yeah they are currently broken for my region
    l
    • 2
    • 1
  • w

    wesbos

    08/29/2017, 3:27 PM
    and not being fixed anytime soon
  • m

    mwickett

    08/29/2017, 3:27 PM
    That’s what I’m wrangling right now - I have a couple running on now as a test, but yeah, the deploy thing is a bit of a challenge.
  • w

    wesbos

    08/29/2017, 3:27 PM
    http://wes.io/mEOx
  • m

    mwickett

    08/29/2017, 3:27 PM
    I’m trying to think of a way to bundle them up, that isn’t going to be a nightmare for dev
  • a

    antho1404

    08/29/2017, 3:28 PM
    ho ok, I guess I don’t have this issue
  • w

    wesbos

    08/29/2017, 3:28 PM
    like a single express instance? 😆
  • m

    mwickett

    08/29/2017, 3:28 PM
    @wesbos Was thinking that. Different endpoint for each function.
  • w

    wesbos

    08/29/2017, 3:28 PM
    kind of kills the point of serverless though
  • m

    mwickett

    08/29/2017, 3:28 PM
    Yeah
  • w

    wesbos

    08/29/2017, 3:28 PM
    but it is easier 🙂
  • m

    mwickett

    08/29/2017, 3:28 PM
    Bingo
  • a

    antho1404

    08/29/2017, 3:28 PM
    if you want to deploy many functions at the same time give a try to serverless you can deploy only one function or a set of function and deploy them all together with different endpoints for each
  • w

    wesbos

    08/29/2017, 3:29 PM
    maybe ill take a look - not all that stoked about AWS though
  • m

    mwickett

    08/29/2017, 3:29 PM
    I’ve used Serverless on another project for a handful of functions, but haven’t worked with it using more than 2 or 3.
  • m

    mwickett

    08/29/2017, 3:29 PM
    Yeah, same.
  • w

    wesbos

    08/29/2017, 3:29 PM
    what about sharing code between functions? Is that possible?
  • m

    mwickett

    08/29/2017, 3:30 PM
    Good question - there ends up being a lot of boilerplate (especially setting up
    graphcool-lib
    )
  • a

    antho1404

    08/29/2017, 3:31 PM
    hum using a lib you do for that yes but otherwise the deployment will be only for the current folder of the function so cannot include anything more by default but i’m pretty sure with a webpack config you can manage to do that
1...322323324...637Latest