简体   繁体   English

在wso2 esb中缓存

[英]Caching in wso2 esb

We are using wso2 as our esb layer, and we have a use case wherein we require to store login attempts of the user so what is the best way to implement this kind of caching in wso2 as cache mediator is not suitable for this purpose. 我们使用wso2作为我们的esb层,并且我们有一个用例,其中我们需要存储用户的登录尝试,因此在wso2中实现这种缓存的最佳方式是什么,因为缓存中介不适合于此目的。 And which all caching frameworks are supported by wso2? wso2支持哪些缓存框架?

Thanks 谢谢

Unfortunately, your use case is very difficult to understand, using the information given in the question. 不幸的是,使用问题中给出的信息很难理解您的用例。 Hence, it is hard to give a comprehensive answer. 因此,很难给出全面的答案。 So please explain a bit about your requirement. 所以请解释一下你的要求。

In the meantime, I would like to add following points. 与此同时,我想补充以下几点。

  1. As you mention it might be difficult to use Cache Mediator [1] for this purpose. 正如您所提到的,可能很难将Cache Mediator [1]用于此目的。 It mainly uses for response caching using some message hashes. 它主要用于使用一些消息哈希的响应缓存。
  2. I think in general out of the box mediators which come with WSO2 ESB might not suitable for your requirement (Please kindly not that I'm making this statement based on my vague idea about your requirement). 我认为一般而言,WSO2 ESB附带的开箱即用调解器可能不适合您的要求(请注意,我根据您对您的要求的模糊概念,不是根据我的说法)。 So sometimes you might want to write your own class mediator to suit your requirement. 所以有时您可能想要编写自己的类调解器以满足您的要求。 If you need some getting started document on how to write a class mediator [2] would be a good starting point. 如果您需要一些入门文档,如何编写类调解器[2]将是一个很好的起点。

So please elaborate your requirement and it will be really easy for us to give a comprehensive answer to this question. 所以请详细说明您的要求,我们将很容易对这个问题给出全面的答案。

Thanks, 谢谢,

Upul Upul

[1]. [1]。 https://docs.wso2.com/display/ESB490/Cache+Mediator https://docs.wso2.com/display/ESB490/Cache+Mediator

[2]. [2]。 https://docs.wso2.com/display/ESB490/Class+Mediator https://docs.wso2.com/display/ESB490/Class+Mediator

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM