---
title: "Discussion on \"Flask MVT. Refactor to service layer\" | Hashnode"
description: "Discussion on \"Flask MVT. Refactor to service layer\". Recipe for Model View Template (Flask approach) to utilize Service Layer pattern."
url: "https://hashnode.com/posts/flask-mvt-refactor-to-service-layer/61a0c4a39829fb749bcc007f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Flask MVT. Refactor to service layer](https://jorzel.hashnode.dev/flask-mvt-refactor-to-service-layer?utm_source=hashnode&utm_medium=feed)

Recipe for Model View Template (Flask approach) to utilize Service Layer pattern.

Nov 26, 2021 · 2 min read · jorzel.hashnode.dev  
Updated Aug 10, 2022  
Read the article

-   [#mvc](https://hashnode.com/tag/mvc)
-   [#flask](https://hashnode.com/tag/flask)
-   [#refactoring](https://hashnode.com/tag/refactoring)
-   [#python](https://hashnode.com/tag/python)
-   [#software-design](https://hashnode.com/tag/software-design)

## Written by

[jorzel](https://hashnode.com/@jorzel)

@jorzel · Warsaw, Poland

  
[View profile](https://hashnode.com/@jorzel)

Software Engineer at SauceLabs

Backend developer with special interest in software design, architecture and system modelling. Trying to stay in a continuous learning mindset. Enjoy refactoring, clean code, DDD philosophy and TDD approach.

## Responses 1

Markdown supported · ⌘↵ to post

[Claudio Novoa](https://hashnode.com/@cnovoab)

[Dec 21, 2023](https://hashnode.com/posts/flask-mvt-refactor-to-service-layer/61a0c4a39829fb749bcc007f/comment/6584a47d7ba5409d4797dc52)

I was looking for this for a while. Any resource to dive deeper?

[jorzel](https://hashnode.com/@jorzel)

[Dec 21, 2023](https://hashnode.com/posts/flask-mvt-refactor-to-service-layer/61a0c4a39829fb749bcc007f/comment/6584a47d7ba5409d4797dc52#reply-6584a6387ba5409d4797ee42)

My recommendations are:

-   application services in Domain Driven Design: [enterprisecraftsmanship.com/posts/domain-vs-appli…](https://enterprisecraftsmanship.com/posts/domain-vs-application-services/)
-   clean architecture in python: [github.com/cosmicpython/book/blob/master/chapter\_…](https://github.com/cosmicpython/book/blob/master/chapter_04_service_layer.asciidoc)

I have written also about a codebase structure and what is the application layer (service layer) here: [jorzel.hashnode.dev/how-codebase-structure-shapes…](https://jorzel.hashnode.dev/how-codebase-structure-shapes-system-predictability.) Here is also code example how to implement it: [github.com/jorzel/opentable](https://github.com/jorzel/opentable)
