Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

目前的扩展点定位,在动态匹配场景下灵活度不完善 #37

Closed
funkygao opened this issue Nov 23, 2020 · 2 comments · Fixed by #38
Closed

目前的扩展点定位,在动态匹配场景下灵活度不完善 #37

funkygao opened this issue Nov 23, 2020 · 2 comments · Fixed by #38
Labels
enhancement New feature or request

Comments

@funkygao
Copy link
Owner

funkygao commented Nov 23, 2020

在SaaS平台下,要建立一套low-code平台,要实现类似salesforce Trigger机制:

面临的挑战:

  • 谁来实现Pattern?
    • 使用者实现Pattern,则全都是boilerplate code block,违法DRY原则;此外,也不安全,万一写错呢,还需要加保护
    • SaaS平台实现Pattern,但Pattern目前都是靠实现写代码实现的/static;这个场景下,Pattern是不确定的,因为用户可以随时定义新的Model
  • Pattern数量会太多,造成匹配的性能障碍
@funkygao funkygao added the enhancement New feature or request label Nov 23, 2020
@funkygao
Copy link
Owner Author

如果一个JVM上跑20个客户,每个客户都有100个Model,每个Model都实现了Trigger,那么Trigger实例总计:2,000

@funkygao funkygao linked a pull request Nov 23, 2020 that will close this issue
@funkygao
Copy link
Owner Author

funkygao commented Nov 23, 2020

如果一个JVM上跑20个客户,每个客户都有100个Model,每个Model都实现了Trigger,那么Trigger实例总计:2,000

all stored in JVM Map, O(1), acceptable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant