laravel / octane

Supercharge your Laravel application's performance.
https://laravel.com/docs/octane
MIT License
3.71k stars 284 forks source link

Some time Database Transaction Failed with Laravel Octane & swoole. #901

Closed emrancu closed 1 month ago

emrancu commented 1 month ago

Octane Version

^2.3

Laravel Version

10.48

PHP Version

8.3

What server type are you using?

Swoole

Server Version

latest

Database Driver & Version

MYSQL 8

Description

Hello,

I am running a Laravel app with a load balancer on two servers, connecting to a database on a separate server with a private IP. Occasionally, when I create a project and get redirected to the edit page, I encounter a 404 error because the project is not found in the database. This happens due to the load balancer's round-robin method, which sends the edit project request to the second server that doesn't find the project in the database.

The issue is that no data is inserted into the database, but the first server returns success and redirects to the edit page with the inserted ID.

Thank you in advance for any help.

Steps To Reproduce

no idea

driesvints commented 1 month ago

Hi there,

Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!

Thanks.