Giter Site home page Giter Site logo

Comments (2)

cigolpl avatar cigolpl commented on June 2, 2024 1

Hey @kevinsproles,

I've added multi-tenancy feature (#188)

It's possible now to run thousands of indices on one single machine. Each index can have a different product catalog and configuration (aggregations, sorting fields, etc)

More info in docs https://docs.itemsapi.com/guide/movies.html#multi-tenancy

from itemsapi.

cigolpl avatar cigolpl commented on June 2, 2024

It depends how many products you have and also workload of search and indexing. This use case is great. ItemsAPI works well with flexible requirement per index and was designed for such a cases

Personally right now I'd:

  • deploy it by ansible (or terraform) to 100 x 10$ digitalocean instances. I'd set SWAP from SSD for about 24 GB RAM. I'd run 100 ItemsAPI servers / indexes on each DO instance

OR

  • create all indexes on one ItemsAPI instance on high quality metal bare server (64 GB RAM, SSD or NVME). I think one such a server could handle 10,000+ sites. ItemsAPI works very well with tens of millions of records on small machine (except slowier indexing). If millions of records comes from 10K sites it could be even better because all indexes are smaller so searching and indexing is faster then one big index. The bottleneck might be a traffic to Node.JS API and not core c++ search engine itself.

The second solution is IMO best but I am not supporting multi-indexes from one ItemsAPI instance yet. I am going to implement it in the future. If I also add a RAFT (i.e. https://github.com/baidu/braft) on top of it then you could replicate it and make SLA on 99.99%

from itemsapi.

Related Issues (20)

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.