Giter Site home page Giter Site logo

code-ninja-v2's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

code-ninja-v2's Issues

Cache invalidation must also "smartly" update local storage

New properties added to theme object are not reflected unless its reset (manually) in local storage by changing the theme by clicking on the theme toggle button.

Need to find a way to clear cache invalidation by smartly updating local storage, i.e. we need to add these properties to the object without resetting users preference for theme

Look for the most optimum & cost-effective way to run cache invalidation for cloudfront

Reference:
deploy/scripts/cache-invalidation.ts:29

const params: CreateInvalidationRequest = {
    DistributionId: findCNDistribution?.Id || "",
    InvalidationBatch: {
      CallerReference: new Date().toISOString(),
      Paths: {
        Quantity: 1,
          /**
           * TODO: Identify / experiment to understand if we need to invalidate everything to reflect changes
           * 
           */
        Items: ["*"],
      },
    },
  };

  await cloudfront.createInvalidation(params).promise();

Optimize search algo

Search algo is very rudimentary, but it does feel fast enough at the moment (because we dont have a lot of articles).

It doesnt make sense to optimize prematurely since we dont have any issues with speed of search at the moment. But would be an interesting topic to research for better algorithms to improve lookup speed.

Maybe look for services like Algolia (except free).

Link all scripts to root level

Scripts like deploy, build etc must be run from their respective folders "deploy", "frontend" etc. Link them all to root level scripts to prevent navigating to different directories

Look for some free AI service (perhaps AWS Comprehend) to generate list of "interesting" keywords to use for search

Currently, I have to manually create interesting keywords for each content article so that search works with these keywords.
We want some AI service to take the text of the article as input and generate a few of the important / interesting keywords for search to use.

I think this approach of keyword based search would be the most efficient for the user. Since we don't want to search through prepositions, articles and other non-interesting keywords, it doesnt make sense to use all words for search.

Check to see if AWS Comprehend does something like this

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.