Browse Source

Feign compression documentation

pull/6/head
Jakub Narloch 9 years ago committed by Spencer Gibb
parent
commit
68fa6afa17
  1. 24
      docs/src/main/asciidoc/spring-cloud-netflix.adoc

24
docs/src/main/asciidoc/spring-cloud-netflix.adoc

@ -126,7 +126,7 @@ application Spring Boot Actuator current health check status. Which means
that after successful registration Eureka will always announce that the that after successful registration Eureka will always announce that the
application is in 'UP' state. This behaviour can be altered by enabling application is in 'UP' state. This behaviour can be altered by enabling
Eureka health checks, which results in propagating application status Eureka health checks, which results in propagating application status
to Eureka, as a consequence every other application will not sending to Eureka. As a consequence every other application won't be sending
traffic to application in state other then 'UP'. traffic to application in state other then 'UP'.
.application.yml .application.yml
@ -864,6 +864,28 @@ public interface UserClient extends UserService {
} }
---- ----
=== Feign request/response compression
You may consider enabling the request or response GZIP compression for your
Feign requests. You can do this by enabling one of the properties:
[source,java]
----
feign.compression.request.enabled=true
feign.compression.response.enabled=true
----
Feign request compression gives you settings similar to what you may set for your web server:
[source,java]
----
feign.compression.request.enabled=true
feign.compression.request.mime-types=text/xml,application/xml,application/json
feign.compression.request.min-request-size=2048
----
These properties allow you to be selective about the compressed media types and minimum request threshold length.
== External Configuration: Archaius == External Configuration: Archaius
https://github.com/Netflix/archaius[Archaius] is the Netflix client side configuration library. It is the library used by all of the Netflix OSS components for configuration. Archaius is an extension of the http://commons.apache.org/proper/commons-configuration[Apache Commons Configuration] project. It allows updates to configuration by either polling a source for changes or for a source to push changes to the client. Archaius uses Dynamic<Type>Property classes as handles to properties. https://github.com/Netflix/archaius[Archaius] is the Netflix client side configuration library. It is the library used by all of the Netflix OSS components for configuration. Archaius is an extension of the http://commons.apache.org/proper/commons-configuration[Apache Commons Configuration] project. It allows updates to configuration by either polling a source for changes or for a source to push changes to the client. Archaius uses Dynamic<Type>Property classes as handles to properties.

Loading…
Cancel
Save