https://www.prisma.io/ logo
Join SlackCommunities
Powered by
# orm-help
  • c

    CCBCodeMonkey

    02/21/2019, 8:14 PM
    right now I use prisma on heroku
  • c

    CCBCodeMonkey

    02/21/2019, 8:14 PM
    but if my site started needing to scale, I would probably take the time to migrate to like DO or something
  • c

    CCBCodeMonkey

    02/21/2019, 8:14 PM
    since its way cheaper
  • p

    protzman

    02/21/2019, 8:14 PM
    yeah thats what I have heard. only worked with lambda personal projects. but yeah just trying to come up with a fun awesome stack haha
  • c

    CCBCodeMonkey

    02/21/2019, 8:14 PM
    with amplify, you are pretty locked in
  • p

    protzman

    02/21/2019, 8:14 PM
    yeah gotcha
  • p

    protzman

    02/21/2019, 8:14 PM
    what’s ‘DO’ in this sense ^
  • c

    CCBCodeMonkey

    02/21/2019, 8:14 PM
    not that thats bad, you have to do more thinking
  • c

    CCBCodeMonkey

    02/21/2019, 8:15 PM
    *digital ocean
  • p

    protzman

    02/21/2019, 8:15 PM
    ah gotcha
  • c

    CCBCodeMonkey

    02/21/2019, 8:15 PM
    which is way cheaper in my experience
  • c

    CCBCodeMonkey

    02/21/2019, 8:15 PM
    than AWS for sure
  • p

    protzman

    02/21/2019, 8:15 PM
    sure sure. mostly work with aws for work so that’s all i’m familiar with atm
  • c

    CCBCodeMonkey

    02/21/2019, 8:15 PM
    yea so do I
  • c

    CCBCodeMonkey

    02/21/2019, 8:16 PM
    aws is pretty used in corporate obviously, where they do big contracts and cut their rates
  • c

    CCBCodeMonkey

    02/21/2019, 8:16 PM
    when you are paying for it on your own, as I know for exp, its not cheap
  • p

    protzman

    02/21/2019, 8:17 PM
    so in ur case, you can self host apollo server wherever u host ur application?
  • c

    CCBCodeMonkey

    02/21/2019, 8:17 PM
    yes
  • c

    CCBCodeMonkey

    02/21/2019, 8:17 PM
    apollo-server is just a node app
  • c

    CCBCodeMonkey

    02/21/2019, 8:17 PM
    I have a ton of custom logic and background jobs and stuff
  • c

    CCBCodeMonkey

    02/21/2019, 8:17 PM
    associated with it
  • c

    CCBCodeMonkey

    02/21/2019, 8:17 PM
    you can run it on anything that runs node
  • c

    CCBCodeMonkey

    02/21/2019, 8:18 PM
    prisma is its own containerized thing, I use the heroku service from prisma cloud
  • c

    CCBCodeMonkey

    02/21/2019, 8:18 PM
    how it works is: prisma creates a graphql API on top of your DB, and you control all your underlying schema with prisma
  • c

    CCBCodeMonkey

    02/21/2019, 8:18 PM
    and then you have yoga(or in my case apollo server) as your actual public facing API
  • c

    CCBCodeMonkey

    02/21/2019, 8:19 PM
    and you can pass data straight through to prisma, for some stuff, or write custom resolves, or manipulate data in your apollo server layer
  • c

    CCBCodeMonkey

    02/21/2019, 8:19 PM
    its like the business layer, prisma is like the DB
  • p

    protzman

    02/21/2019, 8:20 PM
    nice okay that makes sense
  • c

    CCBCodeMonkey

    02/21/2019, 8:20 PM
    but it interacts really well because since it uses graphql, it goes hand in hand with how you are querying your public API
  • c

    CCBCodeMonkey

    02/21/2019, 8:20 PM
    so like on a lot of stuff, i just take what the user queried and pass it to prisma(as long as its safe to return whats in the DB)
1...218219220...637Latest