Skip to content

SWOOLE_BASE vs SWOOLE_PROCESS - why should SWOOLE_BASE be preferred? #4855

@linuxd3v

Description

@linuxd3v

The differences between these 2 modes (SWOOLE_BASE vs SWOOLE_PROCESS) are not very clear (at least to me).

When I look at the documentation - I was assuming (perhaps incorrectly) BASE = basic, so I would automatically configure SWOOLE_PROCESS mode thinking that is better and preferred.

But now - I see that swoole version 5 has made SWOOLE_BASE as default, and I also see some indications that SWOOLE_BASE should be preferred mode:

#4757
SWOOLE_BASE has never been deprecated, instead, it should be the preferred mode.
The reason why SWOOLE_PROCESS is still the default mode today is for backward compatibility.

Is there some documentation on why SWOOLE_BASE should be preferred and how is it better than SWOOLE_PROCESS?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions