pedestal

ujjwalt 2019-04-06T06:52:17.007Z

Hi, I wanted to know about the state of pedestal ions interceptor chain provider. Is there a timeline on the going async caveat and what else is missing.

ujjwalt 2019-04-06T06:53:21.008300Z

I think this is a very compelling use case for people like me doing Clojure and Datomic and using Ions as a way to continuously develop and deliver apps. I’m trying to build an API product and there is tremendous value for me in using Pedestal here for streamlining how the API functions.

ujjwalt 2019-04-06T06:53:51.008900Z

But going async is an important step since we hit a lot of external resources to gather data.

ujjwalt 2019-04-06T07:00:19.009600Z

What would be recommended path to web app building with Datomic Ions if not pedestal then? Vase I believe will not work right?

ujjwalt 2019-04-06T07:02:51.010300Z

Actually Vase should be extensible to hook into an API gateway ion handler and take over as a microservice

Jakub Holý 2019-04-06T09:44:49.015100Z

@souenzzo we sockets with aws Lambda don't make sense. But there is solution, API Gateway manages the WS connection for you and you can push data to the client using POST to a magic url see https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-how-to-call-websocket-api-connections.html @ujjwalt Same as 👆 I suspect async doesn't make sense with Lambda <=> Ions but couldn't WS solve your problem?

ujjwalt 2019-04-06T17:37:44.015800Z

I see but I need to provide a REST interface since that is my product.

ujjwalt 2019-04-06T17:42:25.016400Z

Also some of the guide and reference topics don’t have attached articles. Is that because the articles haven’t been linked or are yet to be written?

ujjwalt 2019-04-06T17:43:06.017200Z

I’m asking because I’m planning to invest heavily in the Pedestal+Datomic stack for my API business

mtnygard 2019-04-06T17:47:46.017600Z

@ujjwalt Consider those as invitations to contribute to the docs. 🙂

mtnygard 2019-04-06T17:49:00.018500Z

@ujjwalt The trouble with going async in Ions has to do with the way AWS handles Lambda invocations. Every Lambda call must have a timeout, after which the connection will be terminated no matter what we try to do inside the Ion.

👍 1
ujjwalt 2019-04-06T19:23:25.019300Z

@mtnygard Sure once I actually understand Pedestal 🙂

ujjwalt 2019-04-06T19:23:50.019900Z

In the mean time what would be my best bet at building a full fledged API with Datomic Ions.

ujjwalt 2019-04-06T19:28:50.020900Z

So if I’m not doing anything async then pedestal and ions work well together? Also does vase work with ions?

ujjwalt 2019-04-06T19:29:27.021700Z

@mtnygard BTW reading the guides right. Very well explained. You took the time to address every little detail even about topics you didn’t have to. Thanks a lot for that.

mtnygard 2019-04-06T20:09:13.022700Z

I think Vase will work with Ions, but I haven’t tried it myself. Maybe @ddeaguiar has experimented?