.thrift文件在基于Apache Thrift的应用程序中的实际目的是什么? [英] What is actual purpose of .thrift file in an Apache Thrift based application?

查看:145
本文介绍了.thrift文件在基于Apache Thrift的应用程序中的实际目的是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

.thrift 文件位于应用程序的服务器端还是客户端?

Does the .thrift file reside in the Server side or the client side of the application?

什么基于Apache Thrift的应用程序中 .thrift 文件的实际目的是什么?

What is actual purpose of .thrift file in an Apache Thrift based application?

它仅用于生成最少的源代码吗?该应用程序的代码,还是有其他用途?

Is it only used for generating minimal source codes for the application, or, does it have any other use?

我是否可以不借助 .thrift 文件?

Can't I just write client-server codes myself without taking the help of .thrift file?

推荐答案

*。thrift 文件是IDL文件,其中IDL代表接口描述语言。该文件的主要目的是为所需的目标语言生成特定于服务的代码。像任何其他IDL文件一样, *。thrift IDL文件不需要复制到服务器或客户端上就可以正常工作

The *.thrift file is an IDL file, where IDL stands for Interface description language. The main purpose of this file is to generate the service-specific code for the desired target language(s). The like any other IDL file, the *.thrift IDL file is not required to be copied onto server or client end to have a working solution.

除此之外,使IDL文件公开可用 对于想要使用该服务的开发人员而言,对于文档目的很有用。

Aside from that, making the IDL file publicly available can be useful for documentation purposes for developers that want to use the service.

这篇关于.thrift文件在基于Apache Thrift的应用程序中的实际目的是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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