You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/event-hubs/event-hubs-emulator-whats-new.md
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,15 +19,20 @@ This article provides a detailed overview of the enhancements introduced in the
19
19
> Kindly report any problems or suggestions in the emulator's [GitHub installer repository](https://github.com/Azure/azure-event-hubs-emulator-installer/issues).
20
20
21
21
22
-
## Latest version ``2.0.1``
22
+
## Latest version ``2.1.0``
23
23
24
-
> *Released November 19th, 2024*
24
+
> *Released March 11th, 2025*
25
25
26
-
This release introduces Apache Kafka support in Event Hubs emulator.
27
-
-The producer and consumer APIs are now compatible with the Event Hubs emulator.
26
+
This release introduces health check API in Event Hubs emulator.
27
+
-Health check API can be accessed at *http://localhost:5300/health*
28
28
29
29
## Previous releases
30
30
31
+
### ``2.0.1`` (November 19th,2024)
32
+
33
+
This release introduces Apache Kafka support in Event Hubs emulator.
34
+
- The producer and consumer APIs are now compatible with the Event Hubs emulator.
35
+
31
36
### ``1.2.4`` (July 1st,2024)
32
37
33
38
This release provides enhanced connectivity fixes for Emulator.
1. Run the setup script *LaunchEmulator.ps1*. Running the script brings up two containers: the Event Hubs emulator and Azurite (a dependency for the emulator).
36
+
Use the following steps to run the Event Hubs emulator locally on Windows.
37
+
38
+
1.**Open PowerShell** and navigate to the directory where the [common](https://github.com/Azure/azure-event-hubs-emulator-installer/tree/main/EventHub-Emulator/Scripts/Common) scripts folder is cloned using `cd`:
39
+
```powershell
40
+
cd <path to your common scripts folder> # Update this path
41
+
42
+
2. Issue wsl command to open WSL at this directory.
43
+
```powershell
44
+
wsl
45
+
46
+
3. **Run the setup script** *./LaunchEmulator.sh* Running the script brings up two containers: the Event Hubs emulator and Azurite (a dependency for the emulator).
47
+
```bash
48
+
./Launchemulator.sh
49
+
43
50
44
51
### Linux and macOS
45
52
@@ -81,41 +88,45 @@ To run the Event Hubs emulator locally on Linux or macOS:
81
88
82
89
2. To spin up containers for Event Hubs emulator, Save the following .yaml file as *docker-compose.yaml*.
Copy file name to clipboardExpand all lines: articles/service-bus-messaging/overview-emulator.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,13 +73,17 @@ Like the Service bus cloud service, the emulator provides the following quotas f
73
73
| Number of entities(queues/topics) in a namespace| 50| Yes
74
74
| Number of Subscriptions per topic | 50 | Yes
75
75
| Number of correlation filters per topic | 1000 | Yes
76
+
| Number of SQL Filters | 20 | Yes
77
+
| Length of filter condition or rule action string | 1024 | Yes
78
+
| Number of expressions per rule action | 32 | Yes
76
79
| Number of concurrent connections to namespace| 10 |Yes
77
80
| Number of concurrent receive requests on entity (queue/Topic) or subscription entity | 200 |Yes
78
81
| Message size | 256 KB |No
79
82
| Queue or topic size | 100 MB | No
80
83
| Message Time to Live | 1hr | Yes
81
84
82
85
86
+
83
87
## Quota configuration changes
84
88
85
89
By default, the emulator runs with the [config.json](https://github.com/Azure/azure-service-bus-emulator-installer/blob/main/ServiceBus-Emulator/Config/Config.json) configuration file. You can configure the quotas associated with Service bus by editing this file in the following ways, based on your needs:
Copy file name to clipboardExpand all lines: articles/service-bus-messaging/service-bus-emulator-whats-new.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,19 @@ This article provides a detailed overview of the enhancements introduced in the
18
18
>
19
19
> Kindly report any problems or suggestions in the emulator's [GitHub installer repository](https://github.com/Azure/azure-service-bus-emulator-installer/issues).
20
20
21
+
## Latest version ``1.1.2``
22
+
23
+
> *Released March 11th, 2025*
24
+
25
+
This release introduces new features, bug fixes for Service Bus emulator. The details are as follows:
26
+
27
+
- SQL Actions and Filters are now compatible with Service bus emulator.
28
+
- Provides Health check API in Service Bus emulator. It can be accessed at *http://localhost:5300/health*
29
+
- Provides user configurable health check interval for SQL.
30
+
- Added support for updating LockDuration to a minimum of 5 seconds.
1. Run the setup script [LaunchEmulator.ps1](https://github.com/Azure/azure-service-bus-emulator-installer/tree/main/ServiceBus-Emulator/Scripts/Windows). Running the script brings up two containers: the Service Bus emulator and Sql Edge (a dependency for the emulator).
38
+
1.**Open PowerShell** and navigate to the directory where the [common](https://github.com/Azure/azure-service-bus-emulator-installer/tree/main/ServiceBus-Emulator/Scripts/Common) scripts folder is cloned using `cd`:
39
+
```powershell
40
+
cd <path to your common scripts folder> # Update this path
41
+
42
+
2. Issue wsl command to open WSL at this directory.
43
+
```powershell
44
+
wsl
45
+
46
+
3. **Run the setup script** *./LaunchEmulator.sh*.Running the script brings up two containers: the Service Bus emulator and Sql Edge (a dependency for the emulator).
47
+
```bash
48
+
./Launchemulator.sh
43
49
44
50
### Linux and macOS
45
51
@@ -51,9 +57,10 @@ To run the Service Bus emulator locally on Linux or macOS:
51
57
52
58
1. To start the emulator, supply a configuration for the entities that you want to use. Save the following JSON file locally as _config.json_:
53
59
54
-
```JSON
60
+
61
+
```JSON
55
62
{
56
-
"UserConfig": {
63
+
"UserConfig": {
57
64
"Namespaces": [
58
65
{
59
66
"Name": "sbemulatorns",
@@ -67,7 +74,7 @@ To run the Service Bus emulator locally on Linux or macOS:
67
74
"ForwardDeadLetteredMessagesTo": "",
68
75
"ForwardTo": "",
69
76
"LockDuration": "PT1M",
70
-
"MaxDeliveryCount": 10,
77
+
"MaxDeliveryCount": 3,
71
78
"RequiresDuplicateDetection": false,
72
79
"RequiresSession": false
73
80
}
@@ -89,7 +96,7 @@ To run the Service Bus emulator locally on Linux or macOS:
89
96
"DeadLetteringOnMessageExpiration": false,
90
97
"DefaultMessageTimeToLive": "PT1H",
91
98
"LockDuration": "PT1M",
92
-
"MaxDeliveryCount": 10,
99
+
"MaxDeliveryCount": 3,
93
100
"ForwardDeadLetteredMessagesTo": "",
94
101
"ForwardTo": "",
95
102
"RequiresSession": false
@@ -100,15 +107,15 @@ To run the Service Bus emulator locally on Linux or macOS:
100
107
"Properties": {
101
108
"FilterType": "Correlation",
102
109
"CorrelationFilter": {
103
-
"ContentType": "application/text",
104
-
"CorrelationId": "id1",
105
-
"Label": "subject1",
106
-
"MessageId": "msgid1",
107
-
"ReplyTo": "someQueue",
108
-
"ReplyToSessionId": "sessionId",
109
-
"SessionId": "session1",
110
-
"To": "xyz"
111
-
}
110
+
"ContentType": "application/text",
111
+
"CorrelationId": "id1",
112
+
"Label": "subject1",
113
+
"MessageId": "msgid1",
114
+
"ReplyTo": "someQueue",
115
+
"ReplyToSessionId": "sessionId",
116
+
"SessionId": "session1",
117
+
"To": "xyz"
118
+
}
112
119
}
113
120
}
114
121
]
@@ -119,7 +126,7 @@ To run the Service Bus emulator locally on Linux or macOS:
119
126
"DeadLetteringOnMessageExpiration": false,
120
127
"DefaultMessageTimeToLive": "PT1H",
121
128
"LockDuration": "PT1M",
122
-
"MaxDeliveryCount": 10,
129
+
"MaxDeliveryCount": 3,
123
130
"ForwardDeadLetteredMessagesTo": "",
124
131
"ForwardTo": "",
125
132
"RequiresSession": false
@@ -131,7 +138,7 @@ To run the Service Bus emulator locally on Linux or macOS:
131
138
"FilterType": "Correlation",
132
139
"CorrelationFilter": {
133
140
"Properties": {
134
-
"prop3": "value3"
141
+
"prop1": "value1"
135
142
}
136
143
}
137
144
}
@@ -144,11 +151,37 @@ To run the Service Bus emulator locally on Linux or macOS:
144
151
"DeadLetteringOnMessageExpiration": false,
145
152
"DefaultMessageTimeToLive": "PT1H",
146
153
"LockDuration": "PT1M",
147
-
"MaxDeliveryCount": 10,
154
+
"MaxDeliveryCount": 3,
148
155
"ForwardDeadLetteredMessagesTo": "",
149
156
"ForwardTo": "",
150
157
"RequiresSession": false
151
158
}
159
+
},
160
+
{
161
+
"Name": "subscription.4",
162
+
"Properties": {
163
+
"DeadLetteringOnMessageExpiration": false,
164
+
"DefaultMessageTimeToLive": "PT1H",
165
+
"LockDuration": "PT1M",
166
+
"MaxDeliveryCount": 3,
167
+
"ForwardDeadLetteredMessagesTo": "",
168
+
"ForwardTo": "",
169
+
"RequiresSession": false
170
+
},
171
+
"Rules": [
172
+
{
173
+
"Name": "sql-filter-1",
174
+
"Properties": {
175
+
"FilterType": "Sql",
176
+
"SqlFilter": {
177
+
"SqlExpression": "sys.MessageId = '123456' AND userProp1 = 'value1'"
178
+
},
179
+
"Action" : {
180
+
"SqlExpression": "SET sys.To = 'Entity'"
181
+
}
182
+
}
183
+
}
184
+
]
152
185
}
153
186
]
154
187
}
@@ -158,10 +191,9 @@ To run the Service Bus emulator locally on Linux or macOS:
158
191
"Logging": {
159
192
"Type": "File"
160
193
}
161
-
}
162
-
}
163
-
164
-
```
194
+
}
195
+
}
196
+
```
165
197
166
198
2.To spin up containers for Service Bus emulator, save the following .yaml file as _docker-compose.yaml_
MSSQL_SA_PASSWORD: "${SQL_PASSWORD}" # Password should be same as what is set for SQL Edge
184
218
ACCEPT_EULA: ${ACCEPT_EULA}
219
+
SQL_WAIT_INTERVAL: ${SQL_WAIT_INTERVAL} # Optional: Time in seconds to wait for SQL to be ready (default is 15 seconds)
185
220
depends_on:
186
221
- sqledge
187
222
networks:
@@ -197,9 +232,11 @@ services:
197
232
- "sqledge"
198
233
environment:
199
234
ACCEPT_EULA: ${ACCEPT_EULA}
200
-
MSSQL_SA_PASSWORD: ${MSSQL_SA_PASSWORD}
235
+
MSSQL_SA_PASSWORD: "${SQL_PASSWORD}" # To be filled by user as per policy : https://learn.microsoft.com/en-us/sql/relational-databases/security/strong-passwords?view=sql-server-linux-ver16
236
+
201
237
networks:
202
238
sb-emulator:
239
+
203
240
```
204
241
205
242
3. Create .env file to declare the environment variables for Service Bus emulator and ensure all of the following environment variables are set.
0 commit comments