You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@eventmesh.apache.org by GitBox <gi...@apache.org> on 2021/08/10 09:50:33 UTC

[GitHub] [incubator-eventmesh] lrhkobe opened a new issue #492: Support resource initilization and release of connector in EventMesh

lrhkobe opened a new issue #492:
URL: https://github.com/apache/incubator-eventmesh/issues/492


   ## Enhancement Request
   
   ### Is your enhancement request related to a problem? Please describe
   
   When a large number of groups represented by eventmesh, there may be a resource problem, because in eventmesh each group corresponds to a rocketmq client, and each rocketmq client is heavy and it opens a lot of threads. We may need to use a public thread pool  instead of opening a separate thread pool for each rocket client.
   
   Certainly, you can also do initialization and release of other resources if need.
   
   
   ### Describe the solution you'd like
   
   - Provide the api of connector resource initialization and release  in `eventmesh-conncetor-api`;
   - Provide the implementation of connector resource initialization and release in specific plugin;
   - Execute initialization and release of the connector resource in `eventmesh-runtime` .
   
   ### ConnectorResourceService  API design
   ```
   @EventMeshSPI(isSingleton = true)
   public interface ConnectorResourceService {
   
       /**
        * Resource initialization in connector,such as,some public threadpool if exist
        *
        * @throws Exception
        */
       void init() throws Exception;
   
       /**
        *Resource release in connector,such as,some public threadpool if exist
        *
        * @throws Exception
        */
       void release() throws Exception;
   }
   ```
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org


[GitHub] [incubator-eventmesh] xwm1992 closed issue #492: Support resource initilization and release of connector in EventMesh

Posted by GitBox <gi...@apache.org>.
xwm1992 closed issue #492:
URL: https://github.com/apache/incubator-eventmesh/issues/492


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org