https://prefect.io logo
#prefect-community
Title
# prefect-community
r

Riccardo Tesselli

07/20/2022, 3:05 PM
hello guys. I’m looking for a suggestion about Prefect 2.0 based on your experience. I was thinking which should be the ideal use case for workspaces. Initially I thought that workspaces could be useful to differentiate between enviroments, such as
development
and
production
, so to have a dedicated workspace for each environment. Then, after exploring Prefect 2.0 features, I’ve started to question this because one could use one workspace and setup everything in order to distinguish between development and production pipelines. So I wonder, what do you suggest for managing enviroments? Go with different workspaces or have one workspace? Then, what should be the ideal use case for a workspace?
j

justabill

07/20/2022, 7:08 PM
👋 Hey @Riccardo Tesselli, as you've noted, workspaces are pretty flexible. A workspace is an isolated environment within Prefect Cloud 2.0 for collections of people, blocks, flows, and their related concepts like deployments and flow runs. Workspaces could be used in any way you like to organize or compartmentalize your workflows. For example, we expect larger organizations to create separate workspaces for different organizational functions (e.g. sales, operations) or different teams (e.g. Analytics, Data science). Our guidance will be to use a separate workspace for each environment, but as you've noted, that is not strictly speaking necessary, especially through thoughtful use of tags.
upvote 2
t

terrence

07/20/2022, 7:22 PM
I think deployment tags > work queues filters > agents has the potential to be a very powerful organizing model within a workspace.
upvote 1
d

davzucky

07/21/2022, 1:58 AM
Will the concept of workspace be available as well in the opensource version?
j

justabill

07/21/2022, 2:30 AM
I'm so glad you asked! An open source instance of the Orion server in Prefect 2 is itself a single workspace. You'll see the similarities once you've entered a workspace in the Prefect Cloud UI. To get similar behavior to Prefect Cloud's multiple workspaces in open source Prefect 2, you can simply start multiple Orion server instances. Thats one of the reasons that we recommend that each workspace correspond to an environment. You can start with open source Prefect, spinning up an Orion server in each environment, and later move to Prefect Cloud easily (or vice versa).
4 Views