Skip to content

Decouple actix-web handlers from app services #157

@josecelano

Description

@josecelano

The app services are tightly coupled to actix-web handler. That makes it more challenging:

  • To migrate to a new framework is needed. In fact, we were planning to do it.
  • To test the services because:
    • You need to start the whole app
    • Assertions have to deal with the framework requests and responses
    • It's slower
    • You cannot easily mock service dependencies

The plan is just to extract the handler bodies into independent app services.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions