如何在多个Web应用程序,多个微服务之间跟踪会话 [英] How to track session across several web apps, multiple microservices

查看:246
本文介绍了如何在多个Web应用程序,多个微服务之间跟踪会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想跟踪多个Web应用程序,多个微服务之间的会话.我所有的Web应用程序都是静态文件,微服务在带有Kubernetes的nodejs容器下运行.

I would like to track a session across multiple web applications, multiple microservices. All of my web applications are static files and microservices are running under nodejs containers with Kubernetes.

我在单独的Web应用程序和单独的微服务之间具有跟踪设置.但是,要合并并在单个视图中查看所有内容太麻烦了.

I have tracking setup across separate web applications and separate microservices. But it too cumbersome to merge and view everything in a single view.

有没有办法在单个会话中查看所有这些对象?

Is there any approach to view all of them under single session?

推荐答案

Kubernetes本身不支持任何请求跟踪,但是您可以将 Istio 与Kubernetes一起使用,后者具有

Kubernetes itself do not support any request tracing, but you can use Istio together with Kubernetes, which has Distributed Tracing feature.

简而言之,您的应用程序将需要重新发送附加的标头,Istio将对其进行检测,从所有服务中收集信息并向您显示请求跟踪.

In short, your application will need to resend attached headers and Istio will detects it, collect information from all your services and show you requests tracing.

它还支持Mesh,因此从理论上讲,您的应用程序可以更快,更安全地工作(由于网络规则).

Also, it supports Mesh, so, theoretically, your application can work a bit faster and secure (because of network rules).

您可以在此处上了解有关Istio的信息,有关跟踪这里是有关如何在Kubernetes中进行设置的说明.

You can read about Istio here, about tracing here and here is an instruction of how to setup it in Kubernetes.

这篇关于如何在多个Web应用程序,多个微服务之间跟踪会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆