pedestal

ujjwalt 2019-02-22T14:53:43.007500Z

Hi. New to Clojure and Pedestal. Looking at Vase. Can someone explain why the template doesn’t match the instructions on building your first API?

ujjwalt 2019-02-22T14:54:11.007900Z

Also is Pedestal and Vase ready for production use?

2019-02-22T15:04:42.010300Z

Hi @ujjwalt and welcome 🙂. I’ll take a look at the Vase docs. It could be that they are out of date. I’m not sure what your definition is for production use but both have been used in production systems. Pedestal predates Vase by a number of years, is highly configurable and supports high traffic usage scenarios

ujjwalt 2019-02-22T15:05:12.010700Z

Yeah I meant if people have used it in production and that it won

ujjwalt 2019-02-22T15:05:16.011Z

*won’t crash

ujjwalt 2019-02-22T15:05:43.011600Z

Little confused with Vase because of the mismatch. Any suggestions on what path to follow to understand it and start using

2019-02-22T15:06:21.011900Z

I’d start with Pedestal first and understand it’s concepts

2019-02-22T15:07:23.012900Z

Understanding Vase is much easier once you’ve got the basic concepts down

2019-02-22T15:07:47.013400Z

Then I’d peruse Datomic docs to get a high-level understanding

2019-02-22T15:08:02.013600Z

I tried to capture the learning path here https://github.com/cognitect-labs/vase#before-you-get-started

2019-02-22T15:12:55.015900Z

@ujjwalt, sorry you ran into issues with the Your first API doc. I can see that it uses the Fern api description format but the vase template is emitting the edn format. I’ll work on rectifying that but you can try working with an older version of that guide in the meantime https://github.com/cognitect-labs/vase/blob/6332b633c174fcfa40efef56d3cd0a57cd2033f8/docs/your_first_api.md

👍 1
ujjwalt 2019-02-22T15:15:37.017500Z

Thanks a lot @ddeaguiar. I’ll start there. Will get back if I encounter something else.

2019-02-22T15:15:55.017900Z

:thumbsup:

ujjwalt 2019-02-22T15:40:31.018500Z

Quick questions: Specifically when does one use ions vs Vase? What would be the ideal use cases for both provided we are on AWS.

2019-02-22T16:01:35.019900Z

It’s on my todo list to put out an example of Ions + Vase now that datomic client api support has landed on Vase master. Note that we’ve yet to push out a release of Vase with those changes

2019-02-22T16:02:46.020700Z

Vase’s value proposition is in data described services. Using it, you can build services quickly

2019-02-22T16:12:04.022800Z

Ions allows you to deploy code that runs on the Datomic infrastructure - close to your DB. In the process, it facilitates deployments.

👍 1
2019-02-22T16:12:43.023400Z

If you are working with Datomic Cloud, then there’s likely a place where Ions are a fit for you

2019-02-22T16:13:52.023800Z

In fact, re: Ions, they run within the Datomic process

2019-02-22T16:14:20.024300Z

so your application is running in the database. You can’t get much closer to your data than that

2019-02-22T16:14:32.024600Z

and you benefit from autoscaling, etc…

2019-02-22T16:15:24.025200Z

There are some caveats, you may run into dependency conflicts but the tooling around identifying, describing and resolving those has improved

ujjwalt 2019-02-22T16:27:47.026400Z

I see. So there’s a use case for using Ions + Vase? Like deploying Vase services as ions? That would be pretty cool. Or maybe deploying it as an API gateway?

2019-02-22T16:30:20.027500Z

I’ve not tried deploying Vase via Ions yet but see no reason why that wouldn’t work. It’s just a Pedestal service and we have a Pedestal Ions interceptor chain provider https://github.com/pedestal/pedestal.ions

💯 1
2019-02-22T16:30:59.028200Z

but we’d need to release an updated version of Vase first containing Datomic Cloud support (currently on master)

2019-02-22T16:35:03.028500Z

I also think Vase + Ions is cool!

ujjwalt 2019-02-22T17:08:29.029Z

That sounds very interesting. Any possible timeline on Vase Datomic Cloud support release?

2019-02-22T17:10:21.029400Z

I’m hoping in the next few weeks

ujjwalt 2019-02-22T17:15:43.029700Z

And any update on the pedestal docs on the website. A lot of links don’t have articles

2019-02-22T17:18:07.030100Z

Ongoing work in progress

ujjwalt 2019-02-22T17:21:56.030300Z

Cool. Thanks a lot.

2019-02-22T17:43:50.030500Z

np!