

# 案例

## Bundled 案例

The Flink sources include many examples for Flink’s different APIs:
Flink的源代码包含了许多Flink不同api的例子::

*   DataStream applications ([Java](https://github.com/apache/flink/blob/master/flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples) / [Scala](https://github.com/apache/flink/blob/master/flink-examples/flink-examples-streaming/src/main/scala/org/apache/flink/streaming/scala/examples))
*   DataSet applications ([Java](https://github.com/apache/flink/blob/master/flink-examples/flink-examples-batch/src/main/java/org/apache/flink/examples/java) / [Scala](https://github.com/apache/flink/blob/master/flink-examples/flink-examples-batch/src/main/scala/org/apache/flink/examples/scala))
*   Table API / SQL queries ([Java](https://github.com/apache/flink/blob/master/flink-examples/flink-examples-table/src/main/java/org/apache/flink/table/examples/java) / [Scala](https://github.com/apache/flink/blob/master/flink-examples/flink-examples-table/src/main/scala/org/apache/flink/table/examples/scala))

这些 [instructions](//ci.apache.org/projects/flink/flink-docs-release-1.7/dev/batch/examples.html#running-an-example) 解释了如何运行示例。

## 网上案例

也有一些博客文章在网上发表，讨论示例应用程序:

*   [How to build stateful streaming applications with Apache Flink](https://www.infoworld.com/article/3293426/big-data/how-to-build-stateful-streaming-applications-with-apache-flink.html)展示了一个使用DataStream API和两个用于流分析的SQL查询实现的事件驱动应用程序。

*   [Building real-time dashboard applications with Apache Flink, Elasticsearch, and Kibana](https://www.elastic.co/blog/building-real-time-dashboard-applications-with-apache-flink-elasticsearch-and-kibana)是elastic的一篇博客文章。展示了如何使用Apache Flink、Elasticsearch和Kibana构建流数据分析的实时仪表板解决方案。

*   [Flink training website](http://training.data-artisans.com/)提供了一些示例。检查实践部分和练习。

