Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any interest in wrapping this up with a lambda function w/websub for realtime updates? #4

Open
jacebenson opened this issue Nov 15, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@jacebenson
Copy link

I've been doing a bunch of reading very recently about websub (pretty much a way to say to some middle server, I'd like updates from this rss feed for the next 5 days) and then you get a post to the endpoint you gave it with encoding.

If so, let me know and I'll draft up a PR.

@zachleat
Copy link
Member

Sounds cool but just so I’m sold on it—can you elaborate on how/where/what you might use this (for)?

@jacebenson
Copy link
Author

so instead of waiting fetching the activities on build, you make a serverless function to handle incoming requests with the new content payload

How: On build register as a subscriber to each topic to a websub server e.g. https://pubsubhubbub.appspot.com/subscribe or https://websubhub.com/ or maybe one you name here https://superfeedr.com/subscriber

  • registering is a post call and then web/sub server then makes a call to your callback to verify you infact do want to subscribe
  • that requires a serverless function to respond properly which will also take in the payload of the new content
  • once registered, websub server makes posts to the callback url provided with the content and a security key in the header so you can verify this is in fact the payload you subscribed to. You could build a new page/link whatever with that payload.
  • the websub server only keeps the subscription for a max of ~5 days. so you'd likely have to have to have a build happen on at least that regularity to keep the subscriptions up.

Where/What: This would have a similar use as the existing polling this plugin does, just allow a serverless function to handle incoming posts as well. This would allow for more realtime updates.

I'm not sure all that would need to go into this but I'm a fan of Eleventy, I've been working on a effectively RSS reader thing for the last few years if this is possible in here I'd love to see it. if this is too much for this maybe I should try to make a poc on my 11ty site first.

@zachleat
Copy link
Member

Sorry for the late circle back here but that does sound awesome! I don’t know that I’d want a serverless dependency for this plugin specifically but I could definitely see an additional package that exposes this functionality!

@zachleat zachleat added the enhancement New feature or request label Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants