Skip to content

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

Merged
juststillthinking merged 7 commits into
apache:masterfrom
bzp2010:feat-create-events-module
Nov 30, 2023
Merged

feat: create new event module for decouple logic and specific library#10558
juststillthinking merged 7 commits into
apache:masterfrom
bzp2010:feat-create-events-module

Conversation

@bzp2010

@bzp2010 bzp2010 commented Nov 28, 2023

Copy link
Copy Markdown
Contributor

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

bzp2010 commented Nov 28, 2023

Copy link
Copy Markdown
Contributor Author

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

@soulbird

Copy link
Copy Markdown
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
@juststillthinking

Copy link
Copy Markdown
Contributor

@bzp2010 i prefer to apisix.events

Comment thread apisix/event.lua
@juststillthinking juststillthinking added the wait for update wait for the author's response in this issue/PR label Nov 29, 2023
@juststillthinking juststillthinking added approved and removed wait for update wait for the author's response in this issue/PR labels Nov 30, 2023
@juststillthinking
juststillthinking merged commit da4c5b1 into apache:master Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants