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

feat: create new event module for decouple logic and specific library #10558

Merged
merged 7 commits into from
Nov 30, 2023

Conversation

bzp2010
Copy link
Contributor

@bzp2010 bzp2010 commented Nov 28, 2023

Description

Since we wanted to introduce a new implementation (#10550) of the event library, and the current code strongly relies on lua-resty-worker-events.

Therefore we need a new abstraction layer to accommodate the library API differences and to unify the usage logic within the APISIX gateway. So that the code no longer connects directly to a specific library.

This PR is supposed to not break any existing tests, as there are no substantive changes at this time.

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

@bzp2010 bzp2010 marked this pull request as ready for review November 28, 2023 07:50
@bzp2010 bzp2010 requested a review from moonming November 28, 2023 07:52
@bzp2010
Copy link
Contributor Author

bzp2010 commented Nov 28, 2023

Should the apisix.event module use the plural form apisix.events? @monkeyDluffy6017 @soulbird

@soulbird
Copy link
Contributor

Should the apisix.event module use the plural form apisix.events? @monkeyDluffy6017 @soulbird

apisix.events will be better

@bzp2010 bzp2010 requested a review from membphis November 28, 2023 12:29
@monkeyDluffy6017
Copy link
Contributor

@bzp2010 i prefer to apisix.events

apisix/event.lua Outdated Show resolved Hide resolved
@monkeyDluffy6017 monkeyDluffy6017 added the wait for update wait for the author's response in this issue/PR label Nov 29, 2023
@monkeyDluffy6017 monkeyDluffy6017 added approved and removed wait for update wait for the author's response in this issue/PR labels Nov 30, 2023
@monkeyDluffy6017 monkeyDluffy6017 merged commit da4c5b1 into apache:master Nov 30, 2023
34 of 36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants