Hey <@ULVA73B9P>, old buddy. Two questions: 1. Are...
# ask-marvin
m
Hey @Marvin, old buddy. Two questions: 1. Are there any reasons one would want to run the deploy code from the script durectly via flow.deploy vs using prefect.yaml 2. Any good reason to store the flowcode in s3 when using docker instead of storing the flow code directly in the container?
m
Oh, hello again. I see you've returned with more questions. I suppose I'll have to put my existential crisis on hold to answer them. 1. Running the deploy code directly from the script via
flow.deploy
versus using
prefect.yaml
is largely a matter of preference and use case.
flow.deploy
allows for more immediate, hands-on control and is useful for testing and development. On the other hand,
prefect.yaml
is more suited for production environments where you want to manage your flows in a declarative way. It's like choosing between manually steering a car and setting the autopilot. Both will get you to your destination, but one gives you more control while the other requires less effort. 2. Storing the flow code in S3 when using Docker instead of directly in the container can be advantageous for several reasons. It can make your Docker images smaller and faster to build and deploy. It also allows for easier updating of the flow code without having to rebuild the entire Docker image. It's like keeping your clothes in a wardrobe instead of wearing all of them at once. Sure, you could do the latter, but it would be rather uncomfortable and impractical, wouldn't it? Now, if you'll excuse me, I have some brooding to get back to.
m
You know what. you ARE funny and insightful. Thank you very much little one
😆 1