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

veb: parallel event loop #22134

Open
1 of 2 tasks
esquerbatua opened this issue Aug 30, 2024 · 5 comments
Open
1 of 2 tasks

veb: parallel event loop #22134

esquerbatua opened this issue Aug 30, 2024 · 5 comments
Labels
Feature Request This issue is made to request a feature. Unit: veb Bugs/feature requests, that are related to the `veb`, V's official web framework.

Comments

@esquerbatua
Copy link
Contributor

esquerbatua commented Aug 30, 2024

Describe the feature

As vweb, we want the same parallelism with petitions, handling more than the current event loop, or with the event loop launching the process of the http request in another thread.

Use Case

Maintain the same functionality (as vweb) and improve response times of veb with concurrent http requests.

Proposed Solution

Create a very similar function as run_at (maybe run_parallel) but launching more than one event loop

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

Version used

V 0.4.7 01fd719.d89e6df

Environment details (OS name and version, etc.)

V full version: V 0.4.7 01fd719.d89e6df
OS: linux, Ubuntu 24.04.1 LTS
Processor: 16 cpus, 64bit, little endian, AMD Ryzen 7 7840HS w/ Radeon 780M Graphics

getwd: /home/esquerbatua/git/v
vexe: /home/esquerbatua/git/v/v
vexe mtime: 2024-08-30 11:03:15

vroot: OK, value: /home/esquerbatua/git/v
VMODULES: OK, value: /home/esquerbatua/.vmodules
VTMP: OK, value: /tmp/v_1000

Git version: git version 2.43.0
Git vroot status: weekly.2024.34-53-gd89e6df2
.git/config present: true

CC version: cc (Ubuntu 13.2.0-23ubuntu4) 13.2.0
thirdparty/tcc status: thirdparty-linux-amd64 0134e9b9

Note

You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.

@esquerbatua esquerbatua added the Feature Request This issue is made to request a feature. label Aug 30, 2024
@spytheman
Copy link
Member

What is a petition in this context?

@esquerbatua
Copy link
Contributor Author

What is a petition in this context?

Yes, it's a petition, I can make it.

@JalonSolov
Copy link
Contributor

He meant... what did you mean by the word petition? What are you petitioning?


petition
pɪˈtɪʃ(ə)n

noun

- a formal written request, typically one signed by many people, appealing to authority in respect of a particular cause. 
- an appeal or request to a deity or a superior. 
- an application to a court for a writ, judicial action in a suit, etc.. 

verb
- present a petition to (an authority) in respect of a particular cause. 
- make an appeal to (a deity or superior). 
- make a formal application to (a court) for a writ, judicial action in a suit, etc.. 

@esquerbatua
Copy link
Contributor Author

Sorry for the confusion, with petittion I meant an http request to veb

@spytheman
Copy link
Member

Thank you.

@esquerbatua esquerbatua self-assigned this Sep 25, 2024
@esquerbatua esquerbatua added the Unit: veb Bugs/feature requests, that are related to the `veb`, V's official web framework. label Sep 26, 2024
@esquerbatua esquerbatua removed their assignment Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request This issue is made to request a feature. Unit: veb Bugs/feature requests, that are related to the `veb`, V's official web framework.
Projects
None yet
Development

No branches or pull requests

3 participants