Fork me on GitHub
#pedestal
<
2019-04-06
>
ujjwalt06:04:17

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.

ujjwalt06:04:21

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.

ujjwalt06:04:51

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

ujjwalt07:04:19

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

ujjwalt07:04:51

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

Jakub Holý (HolyJak)09:04:49

@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?

ujjwalt17:04:44

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

ujjwalt17:04:25

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?

ujjwalt17:04:06

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

mtnygard17:04:46

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

mtnygard17:04:00

@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.

👍 4
ujjwalt19:04:25

@mtnygard Sure once I actually understand Pedestal 🙂

ujjwalt19:04:50

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

ujjwalt19:04:50

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

ujjwalt19:04:27

@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.

mtnygard20:04:13

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