4 ms·
@arkadiyt Thanks - I see your point. However, I believe you can also think about it as a service - similar to how Disqus can be added to your static site. That
by amitaibu 6y ago
@arkadiyt Thanks - I see your point. However, I believe you can also think about it as a service - similar to how Disqus can be added to your static site. That is, the site is static, but the results for the search are handled with a service. In this case the "service" - Elasticsearch - is tightly coupled to your static site's revision.
- turnipla 6y agoYou’re confusing static with serverless. Your content is indeed static but your search is not: It’s handled by a service that parses your requests and produces output. Static content on the other hand are files being served straight from the filesystem. As for Disqus, they’re not static either, they’re just “a service for static websites”
- amitaibu 6y ago@turnipla Indeed, the Elasticsearch is completely a typical request - response kind. However, the point in the post was showing how we could make sure the search is in full sync with static site - even if we for example rolled-back deploys. That is, even if we rollback to a revision with less content than what we have in the "default" index, search will not show it to us.