Share Executors via Hub

Now you understand that Executor is a building block in Jina. The following questions arise naturally:

  • Can I reuse my Executor in another project?

  • Can I share my Executor with my colleagues?

  • Can I just use someone else’s Executor instead of building it myself?

Basically, something like the following:

../../_images/hub-user-journey.svg

Yes! This is exactly the purpose of Jina Hub - a marketplace for Executors. With Hub you can pull prebuilt Executors to dramatically reduce the effort and complexity needed in your search system, or push your own custom Executors to share privately or publicly.

A Hub Executor is an Executor that is published in Jina Hub. Such an Executor can be easily used in a Flow:

  1. from jina import Flow
  2. f = Flow().add(uses='jinahub+docker://MyExecutor')
  3. with f:
  4. ...

Hub architecture

The Hub architecture looks like the following:

../../_images/hub-system.svg