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 6213359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T06:40:56+00:00 2026-05-24T06:40:56+00:00

I have to choice to output the info in database (Mysql) to be json

  • 0

I have to choice to output the info in database (Mysql) to be json format.

  1. directly connect to database and fetch the data and output json
  2. connect to a REST service to get the data and output json.

Which is better and why?

  • 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-05-24T06:40:57+00:00Added an answer on May 24, 2026 at 6:40 am

    directly connect to database and fetch the data and output json

    If you are connecting to the database (doesn’t matter if it’s MySQL or something else) directly through binary based protocol it should be faster than REST based protocol.

    connect to a REST service to get the data and output json.

    REST based protocols are on the other hand more simple, straightforward and easier to implement from the client side of view than binary ones in general.

    Which is better and why?

    It depends if you need speed or simplicity of use. In case of binary connection you would additionaly have to parse fetched data to JSON. REST service can give you usually just what you need in desired JSON format. However if speed is crucial for you then binary protocol is better choice I would say.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm manipulating few data with PHP, I have the choice between Json and XML.
I have a data set in R as follows ID Variable1 Variable2 Choice 1
I have a choice. I have a number of already ordered strings that I
I have two questions. Does it make sense when I have to choice of
I am beginner on sqlite,I use it I have no choice and I code
I'm building an ajax application and I have a choice to make on how
In general, If I have a choice when developing a web site to use
other than not encrypting, i have no choice but to have the RSA private
Is it a good choice to have unverified users into the users_table or should
Have you ever had to justify the choice over using .NET instead of Java

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.