Skip to content

Commit d9a6621

Browse files
committed
Improved documentation about lazy connections
1 parent d49ead3 commit d9a6621

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,10 @@ queue_options:
178178
179179
### Important notice - Lazy Connections ###
180180
181-
In current Symfony release (v2.3) all services are fully bootstrapped for each request, a lazy loading support
182-
will be added in the future to save resources. Services in this bundle, by default, will open connections
183-
to the brokers at loading time, i.e. during every web request, unless you set `lazy: true` in your connection configuration.
181+
In a Symfony environment all services are fully bootstrapped for each request, from version >= 2.3 you can declare
182+
a service as lazy ([Lazy Services](http://symfony.com/doc/master/components/dependency_injection/lazy_services.html)).
183+
This bundle still doesn't support new Lazy Services feature but you can set `lazy: true` in your connection
184+
configuration to avoid unnecessary connections to your message broker in every request.
184185
It's extremely recommended to use lazy connections because performance reasons, nevertheless lazy option is disabled
185186
by default to avoid possible breaks in applications already using this bundle.
186187

0 commit comments

Comments
 (0)