# feed(feeder, Int) deprecated, alternative?

**URL:** <https://community.gatling.io/t/feed-feeder-int-deprecated-alternative/6360>\
**Category:** Gatling (Open-Source)\
**Created:** [December 22, 2021, 8:27am UTC](https://community.gatling.io/t/feed-feeder-int-deprecated-alternative/6360 "2021-12-22T08:27:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Fallert](https://avatars.discourse-cdn.com/v4/letter/d/a8b319/32.png) [@David\_Fallert](https://community.gatling.io/u/David_Fallert)\
**Post date:** [December 22, 2021, 8:27am UTC](https://community.gatling.io/t/feed-feeder-int-deprecated-alternative/6360/1 "2021-12-22T08:27:49Z")

</div>

Hello everyone,

I would like to feed multiple records to my scenario like it was described in

[https://gatling.io/docs/gatling/reference/3.6/session/feeder/](https://gatling.io/docs/gatling/reference/3.6/session/feeder/)  
“You can also feed multiple records all at once. If so, attribute names, will be suffixed. For example, if the columns are named “foo” and “bar” and you’re feeding 2 records at once, you’ll get “foo1”, “bar1”, “foo2” and “bar2” session attributes.”

This feature seems to be removed according to [https://gatling.io/docs/gatling/reference/current/upgrading/3.6-to-3.7/](https://gatling.io/docs/gatling/reference/current/upgrading/3.6-to-3.7/)  
“feed(feeder, Int) is deprecated for removal and is no longer documented.”

is there a convenient solution for this problem?

kind regards

David

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [December 22, 2021, 2:46pm UTC](https://community.gatling.io/t/feed-feeder-int-deprecated-alternative/6360/2 "2021-12-22T14:46:41Z")

</div>

I really don’t like this name translation.  
IMHO, if we were to reintroduce a similar feature, we should inject Seqs so you would do foo(0), foo(1), get(0), get(1).

Then, I’d like some feedback on how many users actually use this feature.

---

<div class="post-metadata">

**Author:** ![David\_Fallert](https://avatars.discourse-cdn.com/v4/letter/d/a8b319/32.png) [@David\_Fallert](https://community.gatling.io/u/David_Fallert)\
**Post date:** [December 22, 2021, 3:16pm UTC](https://community.gatling.io/t/feed-feeder-int-deprecated-alternative/6360/3 "2021-12-22T15:16:46Z")

</div>

Is there a workaround with the current version how to obtain multiple records?  
I’m quit stuck at the moment.

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [December 22, 2021, 3:26pm UTC](https://community.gatling.io/t/feed-feeder-int-deprecated-alternative/6360/4 "2021-12-22T15:26:46Z")

</div>

The feature is still there in the Scala DSL, it’s just not documented.

---

<div class="post-metadata">

**Author:** ![David\_Fallert](https://avatars.discourse-cdn.com/v4/letter/d/a8b319/32.png) [@David\_Fallert](https://community.gatling.io/u/David_Fallert)\
**Post date:** [December 22, 2021, 3:40pm UTC](https://community.gatling.io/t/feed-feeder-int-deprecated-alternative/6360/5 "2021-12-22T15:40:49Z")

</div>

I’m using the java API it seems that the feature is already removed there 😕

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [December 22, 2021, 3:44pm UTC](https://community.gatling.io/t/feed-feeder-int-deprecated-alternative/6360/6 "2021-12-22T15:44:01Z")

</div>

Then it’s not been removed, it hasn’t been introduced 🙂  
You can do the translation yourself:

feed(feeder)  
.exec( session → session.set(“foo1”, session.getString(“foo”))

.feed(feeder)  
.exec( session → session.set(“foo2”, session.getString(“foo”))

.feed(feeder)  
.exec( session → session.set(“foo3”, session.getString(“foo”))

---

<div class="post-metadata">

**Author:** ![David\_Fallert](https://avatars.discourse-cdn.com/v4/letter/d/a8b319/32.png) [@David\_Fallert](https://community.gatling.io/u/David_Fallert)\
**Post date:** [December 22, 2021, 3:58pm UTC](https://community.gatling.io/t/feed-feeder-int-deprecated-alternative/6360/7 "2021-12-22T15:58:16Z")

</div>

OMG thank you it worked. You saved my day 🙂 Already had my head banging against my keyboard 😃

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [March 13, 2022, 9:19pm UTC](https://community.gatling.io/t/feed-feeder-int-deprecated-alternative/6360/8 "2022-03-13T21:19:48Z")

</div>

FYI: [Core: revamp feed(???, Int) to produce arrays [BREAKING] · Issue #4226 · gatling/gatling · GitHub](https://github.com/gatling/gatling/issues/4226)
