Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiddlet2666 committed May 20, 2024
1 parent 175b34b commit b03e91b
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 363 deletions.
34 changes: 5 additions & 29 deletions go/queues/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,51 +6,27 @@ access Coherence Queues from Go.
## Prerequisites

1. Docker setup using either Docker or Rancher Desktop
2. Go 1.20 or above
3. Java 17+ and Maven 3.8.5+
2. Go 1.20 or above

## Run the Demo using Just Go

### Start a Coherence cluster
## Start a Coherence cluster

```bash
docker run -d -p 1408:1408 -p 30000:30000 ghcr.io/oracle/coherence-ce:24.03
```

### Start one or more receivers
### Start one or more consumers

```bash
go run receiver/main.go
go run consumer/main.go
2024/05/16 14:02:54 session: af36618b-d8fe-493c-ad39-4a442aa30b8b connected to address localhost:1408
2024/05/16 14:02:54 Waiting for orders
```

### Start one or more publisher

Provide the start order number and number of orders to publish.
For example to start a order 1 and publish 100 orders use the following:
For example to start at order 1 and publish 100 orders use the following:

```bash
go run publisher/main.go 1 100
```

## Run the example using Java and Go

### Build the Docker image

Because we want to read the data from Java, we need to build a customer docker image.

Explain here::

```bash
mvn compile jib:dockerBuild
```

This will build the imaged `queues-demo-24.03`

### Run the docker image
```bash
docker run -p 30000:30000 -p 8888:8888 -p 1408:1408 queues-demo-24.03
```
File renamed without changes.
86 changes: 0 additions & 86 deletions go/queues/java/pom.xml

This file was deleted.

59 changes: 0 additions & 59 deletions go/queues/java/queues-demo.iml

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit b03e91b

Please sign in to comment.