Giter VIP home page Giter VIP logo

collectionsonline-sitemap's People

Contributors

alanshaw avatar danwhy avatar nelsonic avatar simonlab avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

collectionsonline-sitemap's Issues

How to trigger the lambda?

The lambda must be triggered by an event which will depend on the frequency we want to update the sitemap. Once a week? At each new item inserted in elasticsearch (might cost a lot if new items are added often)?

Another solution might be to trigger the lambda manually, easy to implement but maybe not very effecient and time consuming for @jamieu.

@jamieu do you have an idea on long we want to wait before triggering the lambda? Or is there a specific event we can monitor which will triger the lambda?

@Danwhy @nelsonic do you have any more specific ideas on this?

Add priority and dates to XML

Add:

  • modification date (of original record)
    <lastmod>2006-11-18</lastmod>

  • priority of SERP pages and FONDs records.
    <priority>0.7</priority> SERP pages (categories, museums)
    <priority>0.6</priority> Top level FOND
    <priority>0.5</priority> All other records

timout execution lambda

From https://aws.amazon.com/lambda/faqs/:

Q: How long can an AWS Lambda function execute?
All calls made to AWS Lambda must complete execution within 300 seconds. The default timeout is 3 seconds, but you can set the timeout to any value between 1 and 300 seconds.

So we need to be sure that the lambda can finish the work in the 300 seconds timeout (5mn). At the moment we are creating the sitemap by scanning all data from elasticsearch. The lambda has the time to finish to create the sitemap but if the database content is getting bigger and bigger we migth arrive to the limit.

  • How long the lambda take to scan the database?

We might be able to speed the process by only getting the recently updated items or the new intems from Elasticsearch by checking the version of the documents

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.