GraphQL 与 Java 对比:30项指标
GraphQL 对比 Java
GraphQL
GraphQL 是一种Declarative, Interface编程语言,首次出现于 2015 年,由 Facebook 设计。主要应用场景:Interface Definition, RPC, Schema。
Java
Java 是一种Object-Oriented, Functional编程语言,首次出现于 1995 年,由 James Gosling 设计。主要应用场景:Backend Services, Enterprise Applications, Android。
30项指标
| 指标 | GraphQL | Java |
|---|---|---|
| GitHub Stars | 46230 | 67614 |
| Stack Overflow Tags | 583831 | 836938 |
| TIOBE Rank | 63 | 4 |
| RedMonk Rank | 57 | 2 |
| PYPL Rank | 64 | 19 |
| Average Salary (USD) | 104516 | 126537 |
| Job Postings | 31436 | 41128 |
| Benchmarks Score | 0.63 | 0.91 |
| Learning Curve | Medium | Hard |
| Community Size | Medium | Very Large |
| Documentation Quality | 7 | 8 |
| Ecosystem Maturity | 6 | 9 |
| Industry Adoption | 7 | 9 |
| Type System Complexity | 6 | 9 |
| Concurrency Support | 7 | 10 |
| Performance - Execution Speed | 7 | 10 |
| Performance - Memory Usage | 7 | 10 |
| Performance - Startup Time | 7 | 10 |
| Tooling Quality | 6 | 10 |
| Package Manager Quality | 6 | 9 |
| IDE Support | 5 | 9 |
| Debugging Experience | 7 | 10 |
| GitHub Stars Rank | 47 | 2 |
| Stack Overflow Tags Rank | 50 | 10 |
| Average Salary Rank | 47 | 15 |
| Job Postings Rank | 43 | 12 |
| Benchmarks Rank | 64 | 14 |
| Learning Curve Score | 5 | 3 |
| Community Size Score | 6 | 10 |
| AHP Score | 6.29 | 8.41 |
AHP综合评分
- GraphQL: 6.29 (#48)
- Java: 8.41 (#5)
GraphQL | ###### 6.29
Java | ######## 8.41
何时选择GraphQL
Interface Definition, RPC, Schema. GraphQL 是一种Declarative, Interface编程语言,首次出现于 2015 年,由 Facebook 设计。主要应用场景:Interface Definition, RPC, Schema。
何时选择Java
Backend Services, Enterprise Applications, Android. Java 是一种Object-Oriented, Functional编程语言,首次出现于 1995 年,由 James Gosling 设计。主要应用场景:Backend Services, Enterprise Applications, Android。
Hello World 示例
GraphQL:
{ hello }
Java:
public class Main { public static void main(String[] a){ System.out.println("Hello, World!"); } }