Skip to content

Developmental Test & Evaluation

Lyes S edited this page Sep 12, 2021 · 5 revisions

Table Of Contents

Configuration

  • 1 instance : Consul
  • 1 instance : ActiveMQ
  • 1 instance : Zipkin
  • 1 instance : Gateway Service
  • 2 instance : Publisher Service
  • 3 instance : Subscriber Service

POST Request

 curl -X POST -H "Content-Type: application/json" \
    -d '{"description": "description sample...."}' \
    localhost:8080/publisher/publish/virtual-topic
{"id":"4a85f640-0086-4055-ae94-9a285a4ba4b5","timestamp":"11-09-2021 23:56:58","description":"description sample...."}

Case 1 : Message Delivery

Logs

publisher-service_1   | INFO [publisher-service,60e31cb29f11360497323595e099d30c,c4f8c16deb696fa3] 1 --- [nio-8081-exec-5] com.lsefiane.publisher.jms.JmsSender     : Sending : Order(id=e5e729f1-b515-42d8-98ee-1d9c1f777acb, timestamp=05-07-2021 14:52:34, description=description sample...) to : VirtualTopic.order
subscriber-service_2  | INFO [subscriber-service,60e31cb29f11360497323595e099d30c,05a7e3f3e788c9ac] 1 --- [ntContainer#0-1] com.lsefiane.subscriber.jms.JmsReceiver  : Received : Order(id=e5e729f1-b515-42d8-98ee-1d9c1f777acb, timestamp=05-07-2021 14:52:34, description=description sample...)
subscriber-service_2  | INFO [subscriber-service,60e31cb29f11360497323595e099d30c,05a7e3f3e788c9ac] 1 --- [ntContainer#0-1] c.l.s.service.SubscriberService          : Creation Process invocation...

Zipkin

Case 2 : Dead Letter Queue

  • 06 Re-delivery attempts before moving the message to the dead-letter queue.

Logs

publisher-service_2   | INFO [publisher-service,60e322a41a76d5d57afc8fb57f5a3dbf,6ebb37465118c20b] 1 --- [nio-8081-exec-5] com.lsefiane.publisher.jms.JmsSender     : Sending : Order(id=2df4264a-5d15-494b-ba0e-a60f5fc03c37, timestamp=05-07-2021 15:17:56, description=description sample...) to : VirtualTopic.order

subscriber-service_2  | INFO [subscriber-service,60e322a41a76d5d57afc8fb57f5a3dbf,76fd2bb2ab250635] 1 --- [ntContainer#0-1] com.lsefiane.subscriber.jms.JmsReceiver  : Received : Order(id=2df4264a-5d15-494b-ba0e-a60f5fc03c37, timestamp=05-07-2021 15:17:56, description=description sample...)

subscriber-service_2  | ERROR [subscriber-service,,] 1 --- [ntContainer#0-1] c.lsefiane.subscriber.config.JmsConfig   : Exception Occurs While Handling Received Message : Unsupported Operation Order ! Status : Unknown

subscriber-service_1  | INFO [subscriber-service,60e322a41a76d5d57afc8fb57f5a3dbf,9c9d2d393330218c] 1 --- [ntContainer#0-1] com.lsefiane.subscriber.jms.JmsReceiver  : Received : Order(id=2df4264a-5d15-494b-ba0e-a60f5fc03c37, timestamp=05-07-2021 15:17:56, description=description sample...)

subscriber-service_1  | ERROR [subscriber-service,,] 1 --- [ntContainer#0-1] c.lsefiane.subscriber.config.JmsConfig   : Exception Occurs While Handling Received Message : Unsupported Operation Order ! Status : Unknown

subscriber-service_3  | INFO [subscriber-service,60e322a41a76d5d57afc8fb57f5a3dbf,af32c54d80a45141] 1 --- [ntContainer#0-1] com.lsefiane.subscriber.jms.JmsReceiver  : Received : Order(id=2df4264a-5d15-494b-ba0e-a60f5fc03c37, timestamp=05-07-2021 15:17:56, description=description sample...)

subscriber-service_3  | ERROR [subscriber-service,,] 1 --- [ntContainer#0-1] c.lsefiane.subscriber.config.JmsConfig   : Exception Occurs While Handling Received Message : Unsupported Operation Order ! Status : Unknown

subscriber-service_2  | INFO [subscriber-service,60e322a41a76d5d57afc8fb57f5a3dbf,9dc10e2cd5dd4401] 1 --- [ntContainer#0-1] com.lsefiane.subscriber.jms.JmsReceiver  : Received : Order(id=2df4264a-5d15-494b-ba0e-a60f5fc03c37, timestamp=05-07-2021 15:17:56, description=description sample...)

subscriber-service_2  | ERROR [subscriber-service,,] 1 --- [ntContainer#0-1] c.lsefiane.subscriber.config.JmsConfig   : Exception Occurs While Handling Received Message : Unsupported Operation Order ! Status : Unknown

subscriber-service_1  | INFO [subscriber-service,60e322a41a76d5d57afc8fb57f5a3dbf,9153cc2c79981404] 1 --- [ntContainer#0-1] com.lsefiane.subscriber.jms.JmsReceiver  : Received : Order(id=2df4264a-5d15-494b-ba0e-a60f5fc03c37, timestamp=05-07-2021 15:17:56, description=description sample...)

subscriber-service_1  | ERROR [subscriber-service,,] 1 --- [ntContainer#0-1] c.lsefiane.subscriber.config.JmsConfig   : Exception Occurs While Handling Received Message : Unsupported Operation Order ! Status : Unknown

subscriber-service_3  | INFO [subscriber-service,60e322a41a76d5d57afc8fb57f5a3dbf,62b7aadbd6d1e4d6] 1 --- [ntContainer#0-1] com.lsefiane.subscriber.jms.JmsReceiver  : Received : Order(id=2df4264a-5d15-494b-ba0e-a60f5fc03c37, timestamp=05-07-2021 15:17:56, description=description sample...)

subscriber-service_3  | ERROR [subscriber-service,,] 1 --- [ntContainer#0-1] c.lsefiane.subscriber.config.JmsConfig   : Exception Occurs While Handling Received Message : Unsupported Operation Order ! Status : Unknown

subscriber-service_2  | INFO [subscriber-service,60e322a41a76d5d57afc8fb57f5a3dbf,010b45cfe015e173] 1 --- [ntContainer#0-1] com.lsefiane.subscriber.jms.JmsReceiver  : Received : Order(id=2df4264a-5d15-494b-ba0e-a60f5fc03c37, timestamp=05-07-2021 15:17:56, description=description sample...)

subscriber-service_2  | ERROR [subscriber-service,,] 1 --- [ntContainer#0-1] c.lsefiane.subscriber.config.JmsConfig   : Exception Occurs While Handling Received Message : Unsupported Operation Order ! Status : Unknown

Zipkin