Skip to content

[DRAFT] Replaced server-wide queue with asyncio#124

Open
MatejFrnka wants to merge 4 commits into
developfrom
refactor/102-use-asyncio-in-routes
Open

[DRAFT] Replaced server-wide queue with asyncio#124
MatejFrnka wants to merge 4 commits into
developfrom
refactor/102-use-asyncio-in-routes

Conversation

@MatejFrnka

@MatejFrnka MatejFrnka commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

CPU usage remained similar, RAM usage has improved slightly.
Green = original
Orange = #123
Blue = This PR

image

I only did one run for measuring: queue manager set to 10 parallel executions, 20 requests sent in total for each config
can do more if needed

@MatejFrnka MatejFrnka changed the title Replaced even server-wide queue with asyncio Replaced server-wide queue with asyncio Jun 26, 2026
@MatejFrnka MatejFrnka changed the title Replaced server-wide queue with asyncio [DRAFT] Replaced server-wide queue with asyncio Jun 26, 2026
@MatejFrnka MatejFrnka force-pushed the refactor/102-use-asyncio-in-routes branch from 6cfc6eb to c25f422 Compare June 26, 2026 16:32
@MatejFrnka MatejFrnka force-pushed the refactor/102-use-asyncio-in-routes branch from bdbfdc8 to 438857f Compare June 30, 2026 07:46
config = _load_app_config(request)
database = PostgresDB(config.database)
return [_model_from_fields(TemplateListItem, **item) for item in database.list_templates()]
async def list_templates(request: fastapi.Request) -> list[TemplateListItem]:

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will async routes work ok with the deployement wrapper? For example when running in lambda. @MarekSuchanek

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.

1 participant