微服务化后,服务和服务之间的调用的数据压缩。


第二步是压缩的格式

第三步,最小的请求限制


响应的配置。

 

  # 解压缩
  compression:
    request:
      enabled: true
      mime-types: text/xml,application/xml,application/json
      min-request-size: 2048
    response:
      enabled: true

 


重启服务,测试。目前看不出来很明显的只有数量量大了才能体现的出来。

http://localhost:7201/sayhello/feign?message=111



以上就是请求的两个优化项

结束


相关文章:

  • 2022-12-23
  • 2021-11-17
  • 2021-05-24
  • 2021-12-06
  • 2022-01-07
  • 2022-02-08
  • 2021-09-29
  • 2022-12-23
猜你喜欢
  • 2021-10-23
  • 2021-12-20
  • 2021-07-25
  • 2021-04-12
  • 2022-12-23
  • 2021-10-05
  • 2021-12-12
相关资源
相似解决方案