Blender Studio Pipeline
      • 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
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners 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

      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.
      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
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Help
Menu
Options
Engagement control 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
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners 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

    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.
    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
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # Future Flamenco Features ## MongoDB to relational database Moving forward I want to get rid of MongoDB. It's been bundled with Flamenco Manager for ease of deployment, but it's never gotten really stable. ### Database Choice - ❓ **PostgreSQL:** good, fast, real database, but requires installation. I've never done that on anything but Linux, so not sure about how simple/hard that is. [Pure Go bindings](https://github.com/jackc/pgx), making cross-compilation easy. - ❓ **SQLite:** ~~Go bindings require C compiler, making cross-compilation hard.~~ [Pure Go bindings](https://pkg.go.dev/modernc.org/sqlite) available. Requires no installation. Easy to start from scratch, but can make Manager upgrades slightly harder (need to copy database + config file around). ### Database Interface - ✅ **Plain SQL:** probably good enough for us, and lowers learning barrier. Easier to make fast queries. - **ORM:** could make it easier to support multiple databases in the future. ### Data Migration - Worker data: migration might not even be necessary, given that workers automatically reregister anyway. Would loose blacklists. - Any task claimed by the Manager needs to either be "given back" to the Server or migrated. Or we decide that it's not going to be a drop-in replacement, and that jobs will simply have to be resubmitted. ## Move Server functionality to Manager Requires quite a few different topics. ### Job Compiler: Scripting Conversion of **job description to concrete tasks** to execute needs to be reimplemented on the Manager. This also requires conversion of Python code to something else. This is probably a good time to reconsider the way this is done. A possible direction would be to use some form of **scripting engine** in order to have a user-expandable set of scripts. These could make it possible to declare custom job types, which is something that is desirable by a lot of studios. Suitable (i.e. pure-Go) scripting engines: - ✅ [Goja](https://github.com/dop251/goja): ECMAScript, so known language but could be a big library, or - [Tengo](https://github.com/d5/tengo): Its own language, but small & fast. Alternative: use a declarative way to define job types, which could be visually represented as a node tree (like Scratch). This could be expressed in YAML, or maybe somehow in ECMAScript or Tengo. ### Authentication Flamenco Manager should no longer require Blender Cloud for authentication. Either it should have its own user database, or use an OAuth server directly, or even LDAP. Probably best to have some **pluggable auth structure**. Note that this is independent of the authentication of the Manager itself, when communication with Flamenco Server. I think the current approach can be kept. ### Projects & Users **Big fat TODO:** how to deal with users (authentication, authorization) and project membership. ### Communication with Blender It probably is a good idea to create a **new add-on** for this, so that it can be disconnected further from the Blender Cloud service. Communicating directly with Blender, the Manager could **expose its supported job types and their parameters**. This can then be used to dynamically generate a UI for submitting jobs. ### Communication with Workers - ❓gRPC: modern protocol, high performance, has a constant connection so communication can go two ways. Also supports streaming messages, which could be useful for handling logging. - ❓REST/OpenAPI3: allows generating web UI for exploration & documentation, can also be used from a webbrowser. - [demo repo](https://github.com/MarioCarrion/todo-api-microservice-example/tree/074bbb9f4d0f79e5bced943c10c56013705969a9) ### Task life cycle: updates from Workers Task updates have to be handled solely by the Manager, instead of relying on the Server. This means that the task state machine has to be reimplemented on the Manager. ### Task & Job management: updates from Server Flamenco Server will have to handle task updates differently. It will get dumber and not handle any automatic task status changes. It should just forward such requests from the web interface to the Manager. There should be APIs for task/job management and an API for monitoring task/job updates/progress/logging/etc. ### Web interface The Manager web interface will have to become considerably more advanced, in order to take over all the job & task management functions of the Server. ### Expand job & task metadata Jobs and tasks should have metadata describing the project-level task that they relate to, the shot, the assets, etc. There should be an API to query these things, and to report related data (job/task aggregated status, render times, etc.). ## Flamenco Server We have to consider **reimplementing Flamenco Server** as standalone service, as a cross-Manager dashboard and not much more. It will be much easier to work on and deploy than to try and keep the current implementation afloat. ## Technical Debt Flamenco Manager was my first nontrivial Go program. Since then I've learned a lot about the language, and I want to reimplement/refactor some Manager parts. Flamenco Worker was an attempt to use Python's then-new `async` system. In hindsight this was a bad decision, and caused more trouble than it's worth. Time permitting, I'd like to **reimplement the Worker in Go**, as this will make cross-platform builds much easier, and also will ease deployment for users. In my spare time I've already started working on a [Go implementation of the Worker](https://gitlab.com/dr.sybren/flamenco-worker-go). As for the "command" implementation in the Worker, the new Go implementation will follow the same approach as the Python implementation (i.e. hard-coded functions for executing commands, with knowledge about what's happening instead of just a CLI runner).

    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

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    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