rabbitmq-tutorials/dart
2018-12-28 21:34:06 +03:00
..
emit_log_direct.dart add dart 2018-12-27 00:52:01 +08:00
emit_log_topic.dart add dart 2018-12-27 00:52:01 +08:00
emit_log.dart add dart 2018-12-27 00:52:01 +08:00
new_task.dart add dart 2018-12-27 00:52:01 +08:00
pubspec.lock add dart 2018-12-27 00:52:01 +08:00
pubspec.yaml add dart 2018-12-27 00:52:01 +08:00
README.md Dart: make it easier to distinguish different published messages 2018-12-28 21:34:06 +03:00
receive_logs_direct.dart add doc 2018-12-27 16:58:14 +08:00
receive_logs_topic.dart Dart: minor tutorial 5 corrections 2018-12-28 21:31:30 +03:00
receive_logs.dart add dart 2018-12-27 00:52:01 +08:00
receive.dart add dart 2018-12-27 00:52:01 +08:00
rpc_client.dart add dart 2018-12-27 00:52:01 +08:00
rpc_server.dart add dart 2018-12-27 00:52:01 +08:00
send.dart add dart 2018-12-27 00:52:01 +08:00
worker.dart add dart 2018-12-27 00:52:01 +08:00

Dart code for RabbitMQ tutorials

Here you can find an Dart port of RabbitMQ tutorials.

Requirements

To run this code you need a Dart 2 server platform installed

Dart 2.0+

These tutorials use dart_amqp.

To install dependencies with pub, run:

pub get

Code

To run the examples, use dart source_file.dart.

Tutorial one: "Hello World!":

dart receive.dart
dart send.dart

Tutorial two: Work Queues

dart worker.dart
dart new_task.dart

Tutorial three: Publish/Subscribe

dart receive_logs.dart
dart emit_log.dart

Tutorial four: Routing

dart receive_logs_direct.dart info warning
dart emit_log_direct.dart info "A message"
dart emit_log_direct.dart warning "A warning"

Tutorial five: Topics

dart receive_logs_topic.dart "info.*" "warn.*"
dart emit_log_topic.dart "info.connections" "Connected"
dart emit_log_topic.dart "warn.connecctions" "A warning"

Tutorial six: RPC (Request/Response)

dart rpc_server.dart
dart rpc_client.dart