Coder Social home page Coder Social logo

Comments (7)

 avatar commented on June 13, 2024 1

from coronavirus-dashboard-api-v2-server.

xenatisch avatar xenatisch commented on June 13, 2024

Where does it cut off? Is there a specific date or area?

from coronavirus-dashboard-api-v2-server.

 avatar commented on June 13, 2024

Will work on getting a list together of any other failing metrics

from coronavirus-dashboard-api-v2-server.

colic001 avatar colic001 commented on June 13, 2024

The case age demographics by LTLA is the only one I have come across with the error, this is what happens to the JSON file in Power Query.

image

As for the CSV version it misses of random LA's of such as Ashford

from coronavirus-dashboard-api-v2-server.

xenatisch avatar xenatisch commented on June 13, 2024

@melvinio16 It's unlikely to be related to metrics so much as it is related to the volume of the data being returned.

I am disabling the streaming in favour of an alternative approach whereby instead of streaming and caching the data simultaneously, we first cache the in storage, then respond with a 303 redirect code against the cached file. This will reduce the chance of premature terminations.

Additionally, I will be adding 2 new tags to the storage files - in_progress and done. When in_progress=1 and done=0, the request will be held (suspended) with 10-second waiting periods. Once in_progress=0 and done=1, the redirect code will be served. If in_progress=0 and done=0, the cache item will be deleted to break any outstanding wait clause and induce a retry.

The downside here is this approach:

  • if the request fails frequently, you'll end up waiting for longer before getting failed request response
  • you don't get a response until everything is ready

On the other hand, I expect this to improve consistency and reliability of the API.

Need to make some fine tuning and perform a few tests. Expect to deploy tonight. Will update here.

from coronavirus-dashboard-api-v2-server.

xenatisch avatar xenatisch commented on June 13, 2024

@colic001 As a part of this update, I've implemented a few safeguards to ensure that the beginning, ending, and separating commas of JSON responses are properly positioned.

from coronavirus-dashboard-api-v2-server.

xenatisch avatar xenatisch commented on June 13, 2024

@melvinio16 / @colic001 I have now deployed the new version. Please do give it a go and let me know how if it's made things better or worse.

from coronavirus-dashboard-api-v2-server.

Related Issues (15)

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.