Skip to content

Commit e3006d0

Browse files
committed
Using Web Service 0.3.0
1 parent abc2557 commit e3006d0

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed

docs/quick-start/storm.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This section gets you running a mock instance of Bullet to play around with. The
55
At the end of this section, you will have:
66

77
* Setup the Bullet topology using a custom spout on [bullet-storm-0.8.3](https://github.com/bullet-db/bullet-storm/releases/tag/bullet-storm-0.8.3)
8-
* Setup the [Web Service](../ws/setup.md) talking to the topology and serving a schema for your UI using [bullet-service-0.2.2](https://github.com/bullet-db/bullet-service/releases/tag/bullet-service-0.2.2)
8+
* Setup the [Web Service](../ws/setup.md) talking to the topology and serving a schema for your UI using [bullet-service-0.3.0](https://github.com/bullet-db/bullet-service/releases/tag/bullet-service-0.3.0)
99
* Setup the [REST PubSub](../pubsub/rest.md) talking to the topology and Web Service.
1010
* Setup the [UI](../ui/setup.md) talking to the Web Service using [bullet-ui-0.5.0](https://github.com/bullet-db/bullet-ui/releases/tag/v0.5.0)
1111

@@ -133,7 +133,7 @@ Visit the UI and see if the topology is up. You should see the ```DataSource```
133133

134134
```bash
135135
cd $BULLET_HOME/service
136-
curl -Lo bullet-service.jar http://jcenter.bintray.com/com/yahoo/bullet/bullet-service/0.2.2/bullet-service-0.2.2-embedded.jar
136+
curl -Lo bullet-service.jar http://jcenter.bintray.com/com/yahoo/bullet/bullet-service/0.3.0/bullet-service-0.3.0-embedded.jar
137137
cp $BULLET_EXAMPLES/web-service/example* $BULLET_HOME/service/
138138
```
139139

@@ -313,11 +313,14 @@ If you put Bullet on your data, you will need to write a Spout (or a topology if
313313

314314
### PubSub
315315

316-
We used the [REST PubSub](../pubsub/rest.md). Note that even though we support a DRPC PubSub, it doesn't actually support windowing so we have not used it for this example. We configured the Backend to use this PubSub by adding these settings to the YAML file that we passed to our Storm topology. Notice that we set the context to ```QUERY_PROCESSING``` since this is the Backend.
316+
We used the [REST PubSub](../pubsub/rest.md). Note that even though we support a DRPC PubSub, it doesn't actually support windowing so we have not used it for this example. We configured the Backend to use this PubSub by adding these settings to the YAML file that we passed to our Storm topology. Notice that we set the context to ```QUERY_PROCESSING``` since this is the Backend. We do not set ```bullet.pubsub.rest.result.url``` because each query sent to the topology has this information so that the results could be returned back to it.
317+
317318

318319
```yaml
319320
bullet.pubsub.context.name: "QUERY_PROCESSING"
320321
bullet.pubsub.class.name: "com.yahoo.bullet.pubsub.rest.RESTPubSub"
322+
bullet.pubsub.rest.query.urls:
323+
- "http://localhost:9999/api/bullet/pubsub/query"
321324
```
322325
323326
For the Web Service, we passed in a YAML file that pointed to itself for the REST endpoints that serve as the PubSub interface. Notice that we set the context to ```QUERY_SUBMISSION``` since this is the Web Service.
@@ -328,8 +331,8 @@ bullet.pubsub.class.name: "com.yahoo.bullet.pubsub.rest.RESTPubSub"
328331
bullet.pubsub.rest.query.urls:
329332
- "http://localhost:9999/api/bullet/pubsub/query"
330333
bullet.pubsub.rest.result.url: "http://localhost:9999/api/bullet/pubsub/result"
331-
bullet.pubsub.rest.connect.timeout.ms: 30000
332-
bullet.pubsub.rest.connect.retry.limit: 10
334+
bullet.pubsub.rest.subscriber.connect.timeout.ms: 5000
335+
bullet.pubsub.rest.publisher.connect.timeout.ms: 5000
333336
bullet.pubsub.rest.subscriber.max.uncommitted.messages: 100
334337
bullet.pubsub.rest.result.subscriber.min.wait.ms: 10
335338
bullet.pubsub.rest.query.subscriber.min.wait.ms: 10

docs/releases.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ The Web Service implementation that can serve a static schema from a file and ta
126126

127127
| Date | Release | Highlights |
128128
| ------------ | -------------------------------------------------------------------------------------- | ---------- |
129-
| 2018-06-14 | [**0.2.2**](https://github.com/bullet-db/bullet-service/releases/tag/bullet-service-0.2.2) | Addding settings to configure websocket |
129+
| 2018-06-25 | [**0.3.0**](https://github.com/bullet-db/bullet-service/releases/tag/bullet-service-0.3.0) | Upgrades to Netty-less Bullet Core for the RESTPubsub |
130+
| 2018-06-14 | [**0.2.2**](https://github.com/bullet-db/bullet-service/releases/tag/bullet-service-0.2.2) | Adding settings to configure Websocket |
130131
| 2018-04-02 | [**0.2.1**](https://github.com/bullet-db/bullet-service/releases/tag/bullet-service-0.2.1) | Moved and renamed settings |
131132
| 2018-03-30 | [**0.2.0**](https://github.com/bullet-db/bullet-service/releases/tag/bullet-service-0.2.0) | Supporting windowing / incremental updates |
132133
| 2017-10-19 | [**0.1.1**](https://github.com/bullet-db/bullet-service/releases/tag/bullet-service-0.1.1) | New PubSub architecture. Switching to Spring Boot and executable JAR instead of WAR |

examples/install-all-storm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -euo pipefail
44

55
BULLET_EXAMPLES_VERSION=0.5.1
66
BULLET_UI_VERSION=0.5.0
7-
BULLET_WS_VERSION=0.2.2
7+
BULLET_WS_VERSION=0.3.0
88
STORM_VERSION=1.2.2
99
NVM_VERSION=0.33.1
1010
NODE_VERSION=6.9.4

examples/web-service/example_rest_pubsub_config.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@ bullet.pubsub.class.name: "com.yahoo.bullet.pubsub.rest.RESTPubSub"
55
bullet.pubsub.rest.query.urls:
66
- "http://localhost:9999/api/bullet/pubsub/query"
77
bullet.pubsub.rest.result.url: "http://localhost:9999/api/bullet/pubsub/result"
8-
# Http connection timout (used by both the web service and the backend)
9-
bullet.pubsub.rest.connect.timeout.ms: 30000
10-
# Http connection retry limit (used by both the web service and the backend)
11-
bullet.pubsub.rest.connect.retry.limit: 10
12-
# Maxiumum number of uncommitted messages allowed before read requests will wait for commits (used by both the web service and the backend)
8+
# Http connection timout for subscribers
9+
bullet.pubsub.rest.subscriber.connect.timeout.ms: 5000
10+
# Http connection timout for publishers
11+
bullet.pubsub.rest.publisher.connect.timeout.ms: 5000
12+
# Maximum number of uncommitted messages allowed before read requests will wait for commits (used by both the web service and the backend)
1313
bullet.pubsub.rest.subscriber.max.uncommitted.messages: 100
14-
1514
# Minimum time (ms) between http calls to the result subscriber REST endpoint
1615
bullet.pubsub.rest.result.subscriber.min.wait.ms: 10
1716
# Minimum time (ms) between http calls to the query subscriber REST endpoint

0 commit comments

Comments
 (0)