jannctu
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.

      Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Explore these features while you wait
      Complete general settings
      Bookmark and like published notes
      Write a few more notes
      Complete general settings
      Write a few more notes
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.

    Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Explore these features while you wait
    Complete general settings
    Bookmark and like published notes
    Write a few more notes
    Complete general settings
    Write a few more notes
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    38
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Python Backend Developer Roadmap ## 1. Basic Internet, Operating System and Frontend Knowledge Whether you’re a software developer, a data scientist, an IT infrastructure manager, or just a geek, knowing how to use a terminal in Linux and macOS is a must. The problem is that there are too many commands to remember. Unless you have a prodigious memory, you’ll need to search on the Internet for this or that command from time to time. [Essential Bash Cheat Sheet](https://betterprogramming.pub/the-essential-bash-cheat-sheet-e1c3df06560) ### 1.1 Bash/Terminal - SSH - ["Mastering Linux shell scripting a practical guide to Linux command- line, Bash scripting, and Shell programming"](https://www.goodreads.com/book/show/40615121-mastering-linux-shell-scripting) ### 1.2 Basic Internet - DNS - Domain ![DNS-Domain](https://pediaa.com/wp-content/uploads/2018/07/Difference-Between-Domain-and-DNS-Comparison-Summary.jpg) - Hosting - Cloud service - resources - [DNS & Domain](https://pediaa.com/difference-between-domain-and-dns/) - [Cloud & Hosting](https://cloudacademy.com/blog/web-hosting-vs-cloud-hosting-whats-the-difference/) ### 1.3 Web server One of the most common uses for a server is to host websites. When you view a web page online, a piece of software on the target host, called a web server, delivers the page content to the viewer. Operating systems do not typically come with a default web server, so it is up to the system administrator to install one. Two of the most popular web server installations are Nginx and Apache. - Nginx, Apache, Tomcat - Reverse Proxy - Load balancer - WSGI & ASGI - Resources - [Nginx](https://www.nginx.com/resources/glossary/nginx/) - [Reverse Proxy](https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/) - [Load Balancer](https://docs.nginx.com/nginx/admin-guide/load-balancer/http-load-balancer/) - [WSGI & ASGI](https://medium.com/analytics-vidhya/difference-between-wsgi-and-asgi-807158ed1d4c) ## 2. Programming language (Python) ### 2.1 Basic Data Structure & Algorithm Python, Java, Golang, and Node.js are popular backend choices. They empower globally successful brands like Google, Wikipedia, Netflix, LinkedIn, even NASA. All three enjoy a prominent market status, millions of developers, and billions worth of project development. - Resources - [Python Basic](https://books.goalkicker.com/PythonBook/) - [Data Structure with Python](https://www.geeksforgeeks.org/data-structures/) ### 2.2 Python2 vs Python3 - Resource - [Python2 vs python3](https://www.guru99.com/python-2-vs-python-3.html) ### 2.3 OOP - class - Inheritance - etc.. - resources - [Python 3 Object Oriented Programming](https://www.goodreads.com/book/show/8679996-python-3-object-oriented-programming) ### 2.4 Python data type - **list** - **queue** - **stack** - **tree** - **dictionary** - **tuple** - **hash map** - **set** - Resources - [Python Basic](https://books.goalkicker.com/PythonBook/) ### 2.5 Environment & environment manager Everyone who touches code has different preferences when it comes to their programming environment. Vim versus emacs. Tabs versus spaces. Virtualenv versus Anaconda. - pip - env & venv - conda - resources - [python environment manager](https://www.section.io/engineering-education/introduction-to-virtual-environments-and-dependency-managers/) - [env](https://docs.python.org/3/tutorial/venv.html) - [conda cheat sheet](https://docs.conda.io/projects/conda/en/4.6.0/_downloads/52a95608c49671267e40c689e0bc00ca/conda-cheatsheet.pdf) ### 2.6 Python IDE One of the questions that programmers ask themselves, especially at the beginning of their career after what programming language to use, is what IDE or text editor will make their life better and more efficient. Regardless of the division of programming you do, whether it be [web development]( https://www.knowledgehut.com/web-development-courses), [mobile/ desktop app development](https://hyscaler.com/insights/mobile-app-development-trends/), or data science, your choice of IDE can make a huge difference in your ability to perform your job perfectly. - [Visual studio Code](https://code.visualstudio.com/) - [Pycharm](https://www.jetbrains.com/pycharm/) - [Sublime](https://www.sublimetext.com/) - Other Text Editor ### 2.7 SOLID Principe The principle of SOLID coding is an acronym originated by Robert C. Martin, and it stands for five different conventions of coding. * The SOLID principles are: * The Single-Responsibility Principle (SRP) * The Open-Closed Principle (OCP) * The Liskov Substitution Principle (LSP) * The Interface Segregation Principle (ISP) * The Dependency inversion Principle (DIP) - [Solid principe with python](https://towardsdatascience.com/solid-coding-in-python-1281392a6a94) ### 2.8 Python Framework (web) A web framework is a collection of packages and modules made up of pre-written, standardized code that supports the development of web applications, making development faster and easier, and your programs more reliable and scalable. In other words, frameworks already have built-in components that “set up” your project, so you have to do less grunt work. Python web frameworks are only utilized in the backend for server-side technology, aiding in URL routing, HTTP requests and responses, accessing databases, and web security. While it is not required to use a web framework, it is extremely recommended because it helps you develop complex applications in significantly less time. - [FastAPI](https://fastapi.tiangolo.com/) - [Flask ](https://flask.palletsprojects.com/en/2.0.x/tutorial/index.html) - Django ### 2.9 Unit Testing Both unittest and pytest are testing frameworks in python. Unittest is the testing framework set in python by default. In unittest, we create classes that are derived from the unittest.TestCase module. It comes in handy because it is universally understood. Whereas using pytest involves a compact piece of code. Pytest has rich inbuilt features which require less piece of code compared to unittest. In the case of unittest, we have to import a module, create a class and then define testing functions inside the class. But in the case of pytest, we have to define the functions and assert the conditions inside them. - [pytest](https://docs.pytest.org/en/6.2.x/) - [unittest](https://docs.python.org/3/library/unittest.html) ### 2.10 Important Library - numpy (enhance function) - requests (http request) - socket.io (TCP connection) - psycopg2 (Postgresql database connection) - bcrypt (password encryption) - aioredis (Redis library for python) - stomp.py (STOMP protocol connection) - json (json manipulation) - asyncio (Asynchronous function) - time (time manipulation) - logging (logging library ) - typing (enhance typing in python) - sqlalchemy (ORM library in python) - gunicorn (ASGI web server) - urllib (url sanitazion) - matrix_client (python matrix sdk) - matrix-nio (python matrix sdk, support asyncio) - pyyaml (yaml reader / manipulation) - pandas (data manipulation) - pytest (unit test library) ### 2.11 Python ASGI Three prominent ASGI servers are all good options for testing and running your ASGI app: Uvicorn, Hypercorn, and Daphne. - [gunicorn](https://docs.gunicorn.org/en/stable/) - [uvicorn](https://www.uvicorn.org/settings/) - hypercorn - daphne ### 2.12 Data Model An object-relational mapper (ORM) is a code library that automates the transfer of data stored in relational database tables into objects that are more commonly used in application code. - ORM (Object Relational Mapping) - [SQLAlchemy](https://docs.sqlalchemy.org/en/14/) - Resources - [ORM](https://www.fullstackpython.com/object-relational-mappers-orms.html) ### 2.9 Advanced Concept - Decorator / Property (@) [tutorial](https://www.programiz.com/python-programming/decorator) [tutorial2](https://www.datacamp.com/community/tutorials/decorators-python) - Synchronous & Asynchronous [Asyncio Python](https://docs.python.org/3/library/asyncio.html) - Multithreading [python Multithreading](https://www.tutorialspoint.com/python/python_multithreading.htm) - python modules [modules & package](https://realpython.com/python-modules-packages/) ## 3. Version Control Version control is a system that records changes to a file or set of files over time so that you can recall specific versions later. For the examples in this book, you will use software source code as the files being version controlled, though in reality you can do this with nearly any type of file on a computer. ### 3.1 Git/Github - resources - [Git documentation](https://git-scm.com/docs) - "Pragmatic version control using Git" ## 4. Database ### 4.1 Posgresql - Resource - [Postgresql tutorial](https://www.postgresqltutorial.com/) ### 4.2 [Databse Index](https://www.postgresql.org/docs/9.1/indexes.html) ### 4.3 SQL (Query Language) [tutorial](https://www.tutorialspoint.com/sql/index.htm) ### 4.4 [Normalization](https://www.guru99.com/database-normalization.html) ### 4.5 [ACID](https://henriquesd.medium.com/acid-properties-43e146b21e0d) ### 4.6 [ORM](https://medium.com/@haataa/orm-for-python-sqlalchemy-101-with-code-example-60868e65b0c) ### 4.7 [NoSQL](https://towardsdatascience.com/datastore-choices-sql-vs-nosql-database-ebec24d56106) - MongoDB - Elastic Search - InfluxDB - DynamoDB ## 5. [APIs](https://medium.com/@perrysetgo/what-exactly-is-an-api-69f36968a41f) A communication API is a type of application programming interface (API) that adds communications channels to particular software. ### 5.1 [Rest API](https://medium.com/edureka/what-is-rest-api-d26ea9000ee6) ### 5.2 [Json](https://restfulapi.net/introduction-to-json/) ### 5.3 [GraphQL](https://graphql.org/) ## 6. [Caching](https://aws.amazon.com/caching/) Caching is the operation of storing some results/data to memory (non-volatile: hard-disk drives and SSDs, or volatile: RAMs and CPU cache) to retrieve them very quickly next time they are needed (without necessarily recomputing the result). ### 6.1 In Memory caching - Redis [tutorial](https://aws.amazon.com/redis/) [Redis python](https://realpython.com/python-redis/) - [memcached](https://memcached.org/) ### 6.2 Content caching - [CDN](https://www.cloudflare.com/learning/cdn/what-is-a-cdn/) ## 7. Testing ### 7.1 [Unit testing](https://www.guru99.com/unit-testing-guide.html) ### 7.2 Tools - pytest - unittest - [Postman](https://www.postman.com/) ## 8. [CI / CD](https://medium.com/devops-dudes/what-is-ci-cd-continuous-integration-continuous-delivery-in-2020-988765f5d116) CI CD Pipeline implementation or the Continuous Integration/Continuous Deployment software is the backbone of the modern DevOps environment. You can find the requirement of Continuous Integration & Continuous Deployment skills in various job roles such as Data Engineer, Cloud Architect, Data Scientist, etc. CI/CD bridges the gap between development and operations teams by automating build, test, and deployment of applications. In this blog, we will know What is CI CD pipeline and how it works. ### 8.1 Version Control ### 8.2 Github/Gitlab ### 8.3 CI/CD tools - [github action ](https://docs.github.com/en/actions/learn-github-actions/understanding-github-actions) - [jenkins](https://www.jenkins.io/) - [travis](https://travis-ci.org/) ## 9. Architectural Patterns ### 9.1 [Monolithic](https://microservices.io/patterns/monolithic.html) ### 9.2 [Microservice](https://microservices.io/) ### 9.3 Patterns - [SAGA](https://microservices.io/patterns/data/saga.html) - [Circuit breaker](https://microservices.io/patterns/reliability/circuit-breaker.html) ### 9.4 Design Pattern OOP provides the design to do that, but as I said earlier we need a pattern to achieve a long-lasting one. Problems might arise in our OOP-designed app which might lead to decay. As such, these problems have been cataloged overtime and elegant solutions for each of them have been described by experienced early Software Developers. These solutions are known as the Design Patterns. To date, there are 24 design patterns, as described in the original book, `Design Patterns: Elements of Reusable Object-Oriented Software`. Each of these patterns provides a set of solution to a particular problem. - Singleton - Strategy - Command - Observer - Resources - [Design Pattern](https://refactoring.guru/design-patterns) ## 10. [Message Broker](https://www.ibm.com/cloud/learn/message-brokers) Message Queue, hereinafter referred to as MQ, is a cross-process communication mechanism for delivering messages upstream and downstream. In the Internet architecture, MQ is a very common messaging service for upstream and downstream “logical decoupling + object understanding coupling”. After using MQ, the upstream of the message transmission only needs to rely on MQ, and it does not depend on other services logically and physically. ### 10.1 Communication concept - Producer & consumer - publisher & subscriber - topic - queue ### 10.2 Engine - [ActiveMQ](https://activemq.apache.org/) - [ActiveMQ in Action](https://github.com/ontiyonke/book-1/blob/master/%5BJAVA%5D%5BActiveMQ%20in%20Action%5D.pdf) - [RabbitMQ](https://www.rabbitmq.com/) - [Kafka](https://kafka.apache.org/) ## 11. Containerization Containerization, Docker, and Kubernetes are now well-known words in the software industry. Containers are a solution to the problem of how to reliably run the software when moving from one computing environment to another. It can range from a developer’s laptop to a test environment, from a staging environment to a product, perhaps from a physical machine in a data center to a virtual machine in a private or public cloud. [Introduction to Contenerization](https://medium.com/crossml/introduction-to-containerization-and-kubernetes-294d1f9b4aa8) ### 11.1 [Docker](https://docs.docker.com/) ### 11.2 [Kubernetes](https://kubernetes.io/docs/home/) ## 12. Authentication ### 12.1 [JWT](https://auth0.com/blog/how-to-handle-jwt-in-python/) ### 12.2 [OAuth2](https://testdriven.io/blog/oauth-python/) - [tutorial](https://developer.byu.edu/docs/consume-api/use-api/oauth-20/oauth-20-python-sample-code) ### 12.3 hash function - sha - [bcrypt](https://zetcode.com/python/bcrypt/) ## 13. Communication Protocol A microservice-based application will often use a combination of these communication styles. The most common type is single-receiver communication with a synchronous protocol like HTTP/HTTPS when invoking a regular Web API HTTP service. Microservices also typically use messaging protocols for asynchronous communication between microservices. ### 13.1 [Websocket](https://www.html5rocks.com/en/tutorials/websockets/basics/) ### 13.2 TCP ### 13.3 [STOMP](https://jasonrbriggs.github.io/stomp.py/) ### 13.4 WEbRTC ### 13.5 Http Request ### 13.6 GRPC ## 14. [Monitoring](https://www.pcwdld.com/best-python-monitoring-tools) Monitoring tools can proactively capture, analyze, trace, and display information related to Python-developed applications. They provide full-stack visibility, which can ultimately help identify and fix application performance bottlenecks and improve the user’s experience. These tools can provide the transparency needed so that developers, operators, and DevOps teams can respond quickly and proactively to issues. ### 14.1 Engine - [Grafana](https://grafana.com/) ![Grafana Sample](https://i.vimeocdn.com/video/1161055160-d516beed63055d5d58815beb90432b58a6b06d48cc3d06f07c15024c94db4994-d?mw=1000&mh=562&q=70) - [Datadog](https://www.datadoghq.com/) - [Prometheus](https://prometheus.io/)

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password
    or
    Sign in via Facebook Sign in via X(Twitter) Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    By signing in, you agree to our terms of service.

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully