Skip to content

Conversation

@n0nag0n
Copy link
Contributor

@n0nag0n n0nag0n commented Feb 9, 2025

Adding new framework, Fomo Framework based on Swoole backend.

Referenced here #7904

@@ -0,0 +1,22 @@
APP_NAME=Fomo
APP_TIMEZONE=UTC
APP_WORKER_COUNT=8
Copy link
Contributor

@joanhey joanhey Feb 9, 2025

Choose a reason for hiding this comment

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

Delete APP_WORKER_COUNT, so the server will adapt dynamically to the computer CPUs.
The bench run with different servers machines, the citrine actually with 28 cores and 56 threads.

In server.php

'additional' => [
        'worker_num' => env('APP_WORKER_COUNT' , cpuCount() * 2) ,

@n0nag0n

@@ -0,0 +1,22 @@
FROM phpswoole/swoole:5.1.3-php8.3
Copy link
Contributor

@joanhey joanhey Feb 9, 2025

Choose a reason for hiding this comment

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

Copy link
Contributor

@joanhey joanhey Feb 9, 2025

Choose a reason for hiding this comment

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

Comment on lines 42 to 50
Fomo\Services\Auth::class ,
Fomo\Services\Cache::class ,
Fomo\Services\Database::class ,
Fomo\Services\Elasticsearch::class ,
Fomo\Services\Language::class ,
Fomo\Services\Mail::class ,
Fomo\Services\Redis::class ,
Fomo\Services\Response::class ,
Fomo\Services\Validation::class ,
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove unnecessary services: mail, redis, elasticsearch, ...

And the corresponding config files.

@n0nag0n
Copy link
Contributor Author

n0nag0n commented Feb 9, 2025

@joanhey Thanks for cleaning that up. I had messed with it last October and forgot to merge it in here. I know when I messed with it before, removing those config problems caused fatal errors (believe it or not), but maybe things have been fixed since then?

@joanhey
Copy link
Contributor

joanhey commented Feb 9, 2025

Remember to show the deprecated errors in Fomo ??

@NateBrady23 NateBrady23 merged commit 756600e into TechEmpower:master Mar 3, 2025
3 checks passed
@n0nag0n n0nag0n deleted the fomo-framework branch March 3, 2025 20:17
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.

4 participants