v
v copied to clipboard
veb: parallel event loop
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
- [X] 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.
What is a petition in this context?
What is a petition in this context?
Yes, it's a petition, I can make it.
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..
Sorry for the confusion, with petittion I meant an http request to veb
Thank you.