Git Product home page Git Product logo

gog-russian-prices's People

Contributors

actions-user avatar dependabot[bot] avatar dionakra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

rodrigotomees

gog-russian-prices's Issues

Add "Last update time"

The data shown in this web is obtained exploiting GOG's REST API six times a day, scheduled as a Firebase Function. That means that obtaining the data can fail due to several reasons.

  1. GOG is under heavy use and its API is taking too long to deliver data. This would crash the data retrieval.
  2. GOG is under heavy use, so requests take longer than normal. Firebase has a hard limit of resources usage of 600 seconds. That means 10 minutes. As I am throttling the requests so the server is not overloaded, the software is run on a Google instance with limited resources and the number of requests is pretty high (around 40), slow requests could cause the Firebase Function running for more than 10 minutes, so the function is aborted.

Because of that, I never really know if the data is refreshed or not. Well, I could know looking at the logs and executions, but no potential user could know it.

So, as we are already storing the last time a Firebase Function execution was successful under the lastRun field on Firebase RealTime Database...

  • Print the last time the content of the page was updated.

Lazy load games not on sale

The web displays in the landing page the games that are on sale right now in GOG.com. This data is retrieved from Firebase from a separate collection that holds only data for those games currently on sale.

But after retrieving the data and displaying it, the web also retries all the games, whether they are on sale or not, so the user can search and find any game, but I think most users don't really use the search option. They only look at the games on sale.

Also, this retrieval is expensive, as all the data for all the games has around 1MB in size, which is very big. So the best option here I think is to defer the loading only if he user searches for everything.

  • Defer all games loading when a user start searching something.

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.