boot-clj / boot

Build tooling for Clojure.
https://boot-clj.github.io/
Eclipse Public License 1.0
1.75k stars 180 forks source link

[Question] about boot pods, make-pod and pool-pod ? #605

Closed azizzaeny closed 7 years ago

azizzaeny commented 7 years ago

what is the differences pod-pool and just pod ? docs says "is isolation", it is like threading ?

azizzaeny commented 7 years ago

and how to list all running pods ?

martinklepsch commented 7 years ago

Hey @azizzaeny

pods — you can think of them as isolated Clojure runtimes, allowing you to load potentially conflicting versions of jars in different pods or "shielding" consumers of your tasks from dependency issues. Threading/parallelism isn't the primary concern of pods but you can of course run a future in a pod if that's what you need.

pod-pools are useful when you intend to use many pods (e.g. in combination with watch). They allow you to create a few pods up front and create new ones as you remove them from the pool.

Listing all pods — there is a var boot.pod/pods that can help you with that. Also check the boot.pod docs which have some more detail on what's available.

I'll close this for now, if you have further questions don't hesitate to ask 🙂