From ca568331b7e70f1bd5e7c07a9613dd9fa8f1c440 Mon Sep 17 00:00:00 2001 From: Chris Bono Date: Thu, 12 Oct 2023 13:17:14 -0500 Subject: [PATCH] Remove Pulsar binder docs The Pulsar binder has been moved to SCSt along with its docs. This commit deletes the local version of the binder docs and adjusts any binder links to point to the SCSt docs. --- .../src/main/antora/modules/ROOT/nav.adoc | 2 +- .../ROOT/pages/reference/pulsar-binder.adoc | 265 ------------------ 2 files changed, 1 insertion(+), 266 deletions(-) delete mode 100644 spring-pulsar-docs/src/main/antora/modules/ROOT/pages/reference/pulsar-binder.adoc diff --git a/spring-pulsar-docs/src/main/antora/modules/ROOT/nav.adoc b/spring-pulsar-docs/src/main/antora/modules/ROOT/nav.adoc index 11b1d5be..c3ad5128 100644 --- a/spring-pulsar-docs/src/main/antora/modules/ROOT/nav.adoc +++ b/spring-pulsar-docs/src/main/antora/modules/ROOT/nav.adoc @@ -10,7 +10,7 @@ ** xref:reference/pulsar-admin.adoc[] ** xref:reference/pulsar-function.adoc[] ** xref:reference/observability.adoc[] -** xref:reference/pulsar-binder.adoc[] +** https://docs.spring.io/spring-cloud-stream/reference/pulsar/pulsar_binder.html[Spring Cloud Stream Binder for Apache Pulsar] * xref:other-resources.adoc[] * Appendices ** xref:appendix/version-compatibility.adoc[] diff --git a/spring-pulsar-docs/src/main/antora/modules/ROOT/pages/reference/pulsar-binder.adoc b/spring-pulsar-docs/src/main/antora/modules/ROOT/pages/reference/pulsar-binder.adoc deleted file mode 100644 index ce771793..00000000 --- a/spring-pulsar-docs/src/main/antora/modules/ROOT/pages/reference/pulsar-binder.adoc +++ /dev/null @@ -1,265 +0,0 @@ -[[pulsar-binder]] -= Spring Cloud Stream Binder for Apache Pulsar -include::../attributes/attributes.adoc[] - -Spring for Apache Pulsar provides a binder for Spring Cloud Stream that we can use to build event-driven microservices using pub-sub paradigms. -In this section, we will go through the basic details of this binder. - -TIP: For those unfamiliar with the concepts in Spring Cloud Stream, go through the primary {spring-cloud-stream-docs}[reference docs] for Spring Cloud Stream to understand the core concepts. - -== Usage - -We need to include the following dependency on your application to use Apache Pulsar binder for Spring Cloud Stream. - -[tabs] -====== -Maven:: -+ -[source,xml,indent=0,subs="verbatim,attributes",role="primary"] ----- - - - org.springframework.cloud - spring-cloud-stream-binder-pulsar - {spring-cloud-stream-version} - - ----- - -Gradle:: -+ -[source,groovy,indent=0,subs="verbatim,attributes",role="secondary"] ----- -dependencies { - implementation 'org.springframework.cloud:spring-cloud-stream-binder-pulsar:{spring-cloud-stream-version}' -} ----- -====== - -== Overview - -The Spring Cloud Stream binder for Apache Pulsar allows the applications to focus on business logic rather than dealing with the lower-level details of managing and maintaining Pulsar. -The binder takes care of all those details for the application developer. -Spring Cloud Stream brings a powerful programming model based on {spring-cloud-function}[Spring Cloud Function] that allows the app developer to write complex event-driven applications using a functional style. -Applications can start from a middleware-neutral manner and then map Pulsar topics as destinations in Spring Cloud Stream through Spring Boot configuration properties. -Spring Cloud Stream is built on top of Spring Boot, and when writing an event-driven microservice using Spring Cloud Stream, you are essentially writing a Boot application. -Here is a straightforward Spring Cloud Stream application. - -[source, java] ----- -@SpringBootApplication -public class SpringPulsarBinderSampleApp { - - private final Logger logger = LoggerFactory.getLogger(this.getClass()); - - public static void main(String[] args) { - SpringApplication.run(SpringPulsarBinderSampleApp.class, args); - } - - @Bean - public Supplier