Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9257487
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:10:20+00:00 2026-06-18T12:10:20+00:00

We have develop our own self-hosted WCF Service, and several PHP applications consume this

  • 0

We have develop our own self-hosted WCF Service, and several PHP applications consume this service to communicate with devices.

To send data to a device we need, the device information and the data we are going to send, we have as well the other way around, get data.

We have several Struct to manage the data: Device, User, UserInfo, DisplayInfo, Events, Logs…
When we send data we use something like:

bool SetUsers(Device d, User[] u);

This is working ok, but with PHP we send data per device, so if we have 50 devices and 2000 users we send 50 times the 2000 users, you can see that this can be better done.

So we thought we could use something like:

bool SetUsers(Device[] d, User[] u);

This as well works ok, but most of the time not all users have to go to all devices, so the latest method is not ok, and the first method is sending to much redundant data.

My question is: what is the best way to send to 50 devices 2000 users or 2000 userInfo or 2000 displayInfo… with one call?

I have thought of three possible ways:

  1. In the Device Struct include a variable property of several Structs. Best way to send data, wort way to organize data.
  2. In each Struct, User, UserInfo… include the Device Struct, then we will sort it accordingly to device in our code. Like it, but don’t think is the best way.
  3. Send all devices + all data relates + a third Struct that relates the two of them. I would have to generate custom ID in each Struct and create a Struct of many-to-many. (don’t know exactly how).

Which one do you think is the best method?
Maybe a new and improved one?

Thanks!!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T12:10:21+00:00Added an answer on June 18, 2026 at 12:10 pm

    If I understand right, your device object can be associated with multiple Users, UserInfo’s or DisplayInfo’s, which case I would logically group them as DeviceUser, DeviceUserInfo and DeviceDisplayInfo objects and have a IEnumerable collection of the User / UserInfo / DisplayInfo inside it.

    Example,

    DeviceUser
    - DeviceId (int)
    - Users (IEnumerable<User>)
    - Make (string)
    - Year (int)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have an AS400 that we need to communicate with using our .NET applications.
I have develop one web site in php. I know how to upload it
Currently we have many applications, where each application has its own error notification and
We develop a fair number of web-based applications, most of which are hosted on
I've previously done WF workflows hosted by SharePoint sites. We currently have to develop
Hi i have develop and deploy one multilingual (english uk and swedish) website at
I am new in Android. I have develop an app. And now want to
I have to develop a application (Winforms-application) which is connected to a database within
I have to develop an Intensity Meter, which will basically display the average intensity
I have to develop a program where I need to get the event from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.