https://github.com/paulnovack/symfony_async
An example of a new Symfony app using ZeroMQ queues for Asynchronous DB Queries
https://github.com/paulnovack/symfony_async
asynchronous sql symfony
Last synced: about 2 months ago
JSON representation
An example of a new Symfony app using ZeroMQ queues for Asynchronous DB Queries
- Host: GitHub
- URL: https://github.com/paulnovack/symfony_async
- Owner: PaulNovack
- Created: 2024-12-28T17:12:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-28T17:59:32.000Z (over 1 year ago)
- Last Synced: 2024-12-28T18:19:59.725Z (over 1 year ago)
- Topics: asynchronous, sql, symfony
- Language: PHP
- Homepage:
- Size: 130 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### symfony_async
An example of how to use https://github.com/PaulNovack/CppZeroMQAsynchSQLServer in a fresh symfony project by creating a CustomRepository
To work better with CppZeroMQAsynchSQLServer the server should return error responses better.
## When to Use CustomRepository for Asynchronous Fetching
The `CustomRepository` and asynchronous sql becomes particularly useful in scenarios where multiple database queries need to be executed concurrently. By fetching data asynchronously, it can significantly reduce the total time taken to load a page, especially when dealing with complex queries or when querying multiple tables. This approach is beneficial in applications where real-time data processing is crucial, such as in dashboards or analytics platforms.
However, using asynchronous fetching may not provide noticeable speed improvements when there is only a single query in a controller. In such cases, the overhead of setting up asynchronous communication might outweigh the benefits. It's most effective when you have multiple independent queries that can be executed in parallel, thereby reducing the overall response time.
